vim.keymap.set('v', '<C-S-j>', ':m \'>+1<CR>gv=gv')
vim.keymap.set('v', '<C-S-k>', ':m \'<-2<CR>gv=gv')
+-- Navigate the location list
+vim.keymap.set('n', '<M-j>', ':lnext<CR>')
+vim.keymap.set('n', '<M-k>', ':lprev<CR>')
+vim.keymap.set('n', '<M-S-j>', ':cnext<CR>')
+vim.keymap.set('n', '<M-S-k>', ':cprev<CR>')
+
-------------------------------------------------------------------------------
-- File Specific Behavior
-------------------------------------------------------------------------------
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
-------------------------------------------------------------------------------
vim.keymap.set("n", "<c-P>",
"<cmd>lua require('fzf-lua').files({ fzf_opts = {} })<CR>", { silent = true })
+-- Toggle Autosave
+vim.api.nvim_set_keymap('n', '<leader>n', ':ASToggle<CR>', {})
+
-- Svelte Config
vim.g.vim_svelte_plugin_use_typescript = true
--- CoC
-vim.keymap.set('i', '<TAB>', 'pumvisible() ? "\\<C-n>" : "\\<TAB>"', {expr = true, silent = true})
-vim.keymap.set('i', '<S-TAB>', 'pumvisible() ? "\\<C-p>" : "\\<C-h>"', {expr = true, silent = true})
-vim.keymap.set('i', '<S-TAB>', 'pumvisible() ? "\\<C-p>" : "\\<C-h>"', {expr = true, silent = true})
-vim.keymap.set('i', '<C-Space>', 'coc#refresh()', {expr = true, silent = true})
-vim.keymap.set('n', 'K', ':call CocActionAsync("doHover")<CR>', {silent = true})
-
-vim.keymap.set('n', '[g', '<Plug>(coc-diagnostic-prev)', {silent = true})
-vim.keymap.set('n', ']g', '<Plug>(coc-diagnostic-next)', {silent = true})
-
-vim.keymap.set('n', 'gd', '<Plug>(coc-definition)', {silent = true})
-vim.keymap.set('n', 'gy', '<Plug>(coc-type-definition)', {silent = true})
-vim.keymap.set('n', 'gi', '<Plug>(coc-implementation)', {silent = true})
-vim.keymap.set('n', 'gr', '<Plug>(coc-references)', {silent = true})
-
-vim.keymap.set('n', '<leader>d', function()
- require("dapui").toggle()
-end)
+-- Coq
+vim.g.coq_settings = {
+ auto_start = 'shut-up',
+ clients = {
+ snippets = {
+ warn = {}
+ }
+ }
+}
-- Plugins
require('plugins')
+require('treesitter_config')
+require('lsp')
+require('dap_config')