X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/fd61b7b4d8f39738dfe019a4f757606e28f3a4d7..ad33f50434782a3365ac9170fdc023704e79db55:/config/nvim/init.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index f705d37..674a55d 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 ------------------------------------------------------------------------------- @@ -81,14 +92,25 @@ pcall(require, 'init_local') vim.keymap.set("n", "", "lua require('fzf-lua').files({ fzf_opts = {} })", { silent = true }) +-- Toggle Autosave +vim.api.nvim_set_keymap('n', 'n', ':ASToggle', {}) + -- Svelte Config vim.g.vim_svelte_plugin_use_typescript = true -- Coq -vim.g.coq_settings = { auto_start = 'shut-up' } +vim.g.coq_settings = { + auto_start = 'shut-up', + clients = { + snippets = { + warn = {} + } + } +} -- Plugins require('plugins') require('treesitter_config') require('lsp') require('dap_config') +require('calendar_tools')