summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-10-18 15:15:51 +0300
committerYigit Sever2021-10-18 15:15:51 +0300
commit164716ab59e0defe7a603b74d98a1b3ab47af612 (patch)
treebcc210ea839ef18039abe2c641678e37273c4a63
parent8f8147b18947d56475ba8a75e5bb987f00e34cbe (diff)
downloaddotfiles-164716ab59e0defe7a603b74d98a1b3ab47af612.tar.gz
dotfiles-164716ab59e0defe7a603b74d98a1b3ab47af612.tar.bz2
dotfiles-164716ab59e0defe7a603b74d98a1b3ab47af612.zip
nvim: remove pear tree add lua thing
-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