-- Autocomplete Behavior
vim.opt.wildmode = 'list:longest,list:full' -- Autocomplete common matching string
- -- first, and then the full match.
-- Folding Behavior
vim.opt.foldmethod = 'syntax' -- Use syntax highlight to define folds
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
-------------------------------------------------------------------------------
-- Plugin Specific Behavior
-------------------------------------------------------------------------------
-- FZF
-vim.keymap.set('', '<C-P>', ':FZF <CR>')
-vim.g.fzf_layout = { down = '40%' }
-vim.g.fzf_colors = {
- fg = {'fg', 'Normal'},
- bg = {'bg', 'Normal'},
- hl = {'fg', 'Comment'},
- ['fg+'] = {'fg', 'CursorLine', 'CursorColumn', 'Normal'},
- ['bg+'] = {'bg', 'CursorLine', 'CursorColumn'},
- ['hl+'] = {'fg', 'Statement'},
- info = {'fg', 'PreProc'},
- border = {'fg', 'Ignore'},
- prompt = {'fg', 'Conditional'},
- pointer = {'fg', 'Exception'},
- marker = {'fg', 'Keyword'},
- spinner = {'fg', 'Label'},
- header = {'fg', 'Comment'}
-}
+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
--- Limelight / Goyo config
-
-vim.g.limelight_conceal_ctermfg = 'gray'
-vim.g.limelight_conceal_guifg = 'DarkGray'
-
-vim.api.nvim_create_autocmd({'User'}, {
- pattern = 'GoyoEnter',
- callback = 'Limelight'
-})
-vim.api.nvim_create_autocmd({'User'}, {
- pattern = 'GoyoLeave',
- callback = 'Limelight!'
-})
---[[
-nnoremap <leader>i :Limelight!!<CR>==
-inoremap <leader>i <Esc>:Limelight!!<CR>==gi
-vnoremap <leader>i :<C-u>Limelight!!<CR>gv=gv
-nnoremap <leader>g :Goyo<CR>==
-inoremap <leader>g <Esc>:Goyo<CR>==gi
-vnoremap <leader>g :<C-u>Goyo<CR>gv=gv
-]]--
+-- Coq
+vim.g.coq_settings = {
+ auto_start = 'shut-up',
+ clients = {
+ snippets = {
+ warn = {}
+ }
+ }
+}
-- Plugins
require('plugins')
+require('treesitter_config')
+require('lsp')
+require('dap_config')