X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/7d35a7fcdeb0fc7e47dcd401b4c91cec9e998799..53d5c65ef679196a66005cdef1057ff642998eeb:/config/nvim/init.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index ac926b3..fd48ab7 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -54,6 +54,12 @@ vim.keymap.set('i', '', ':m .-2==gi') vim.keymap.set('v', '', ':m \'>+1gv=gv') vim.keymap.set('v', '', ':m \'<-2gv=gv') +-- Navigate the location list +vim.keymap.set('n', '', ':lnext') +vim.keymap.set('n', '', ':lprev') +vim.keymap.set('n', '', ':cnext') +vim.keymap.set('n', '', ':cprev') + ------------------------------------------------------------------------------- -- File Specific Behavior ------------------------------------------------------------------------------- @@ -69,6 +75,11 @@ vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { callback = function () vim.opt.filetype = 'snes' end }) +vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { + pattern = {'.plan'}, + callback = function () vim.opt.filetype = 'markdown' end +}) + ------------------------------------------------------------------------------- -- Local Overrides ------------------------------------------------------------------------------- @@ -78,7 +89,7 @@ pcall(require, 'init_local') -- Plugin Specific Behavior ------------------------------------------------------------------------------- -- FZF -vim.keymap.set("n", "", +vim.keymap.set('n', '', "lua require('fzf-lua').files({ fzf_opts = {} })", { silent = true }) -- Toggle Autosave @@ -97,9 +108,12 @@ vim.g.coq_settings = { } } +-- Oil +vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) + -- Plugins require('plugins') require('treesitter_config') require('lsp') require('dap_config') -require('brain') +require('calendar_tools')