summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/plugin_settings.lua25
-rw-r--r--.config/nvim/lua/plugins.lua4
2 files changed, 27 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index 7806790..2dfbaeb 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -367,3 +367,28 @@ require("indent_blankline").setup {
367 filetype_exclude = {"dashboard", "help", "ledger", "man"} 367 filetype_exclude = {"dashboard", "help", "ledger", "man"}
368} 368}
369-- }}} indent-blankline -- 369-- }}} indent-blankline --
370
371-- nvim-autopairs {{{ --
372
373require('nvim-autopairs').setup({
374 disable_filetype = { "TelescopePrompt" },
375})
376
377require("nvim-autopairs.completion.cmp").setup({
378 map_cr = true, -- map <CR> on insert mode
379 map_complete = true, -- it will auto insert `(` (map_char) after select function or method item
380 auto_select = true, -- automatically select the first item
381 insert = false, -- use insert confirm behavior instead of replace
382 map_char = { -- modifies the function or method delimiter by filetypes
383 all = '(',
384 tex = '{'
385 }
386})
387
388local Rule = require('nvim-autopairs.rule')
389local npairs = require('nvim-autopairs')
390
391npairs.add_rule(Rule('%"','%"',"remind"))
392
393
394-- }}} nvim-autopairs --
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index c9b6a7c..055aa2d 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -44,8 +44,8 @@ return require('packer').startup(function()
44 use 'jpalardy/vim-slime' 44 use 'jpalardy/vim-slime'
45 -- snippets to expand 45 -- snippets to expand
46 use {'SirVer/ultisnips', 'honza/vim-snippets'} 46 use {'SirVer/ultisnips', 'honza/vim-snippets'}
47 -- auto pair plugin, people hate these 47 -- autopairs for neovim
48 use 'tmsvg/pear-tree' 48 use 'windwp/nvim-autopairs'
49 -- git diff in the sign column 49 -- git diff in the sign column
50 use 'airblade/vim-gitgutter' 50 use 'airblade/vim-gitgutter'
51 -- completion preview of floating window 51 -- completion preview of floating window