X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/70c7322a3c968fef2d326a179b93807fee83df0f..b662b6bcafaa991a0c1d470fb054dc5d88a58154:/config/nvim/init.lua?ds=sidebyside diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 7601d68..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 ------------------------------------------------------------------------------- @@ -78,63 +89,28 @@ pcall(require, 'init_local') -- Plugin Specific Behavior ------------------------------------------------------------------------------- -- FZF -vim.keymap.set('', '', ':FZF ') -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", "", + "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 --- Limelight / Goyo config - -vim.g.limelight_conceal_ctermfg = 'gray' -vim.g.limelight_conceal_guifg = 'DarkGray' - -vim.api.nvim_create_autocmd({'User'}, { - pattern = 'GoyoEnter', - command = 'Limelight' -}) -vim.api.nvim_create_autocmd({'User'}, { - pattern = 'GoyoLeave', - command = 'Limelight!' -}) - -vim.keymap.set('n', 'i', ':Limelight!!==') -vim.keymap.set('i', 'i', ':Limelight!!==gi') -vim.keymap.set('v', 'i', ':Limelight!!gv=gv') -vim.keymap.set('n', 'g', ':Goyo==') -vim.keymap.set('i', 'g', ':Goyo==gi') -vim.keymap.set('v', 'g', ':Goyogv=gv') - --- CoC -vim.keymap.set('i', '', 'pumvisible() ? "\\" : "\\"', {expr = true, silent = true}) -vim.keymap.set('i', '', 'pumvisible() ? "\\" : "\\"', {expr = true, silent = true}) -vim.keymap.set('i', '', 'pumvisible() ? "\\" : "\\"', {expr = true, silent = true}) -vim.keymap.set('i', '', 'coc#refresh()', {expr = true, silent = true}) -vim.keymap.set('n', 'K', ':call CocActionAsync("doHover")', {silent = true}) - -vim.keymap.set('n', '[g', '(coc-diagnostic-prev)', {silent = true}) -vim.keymap.set('n', ']g', '(coc-diagnostic-next)', {silent = true}) - -vim.keymap.set('n', 'gd', '(coc-definition)', {silent = true}) -vim.keymap.set('n', 'gy', '(coc-type-definition)', {silent = true}) -vim.keymap.set('n', 'gi', '(coc-implementation)', {silent = true}) -vim.keymap.set('n', 'gr', '(coc-references)', {silent = true}) +-- Coq +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')