diff options
author | Yigit Sever | 2021-10-18 15:15:51 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-18 15:15:51 +0300 |
commit | 164716ab59e0defe7a603b74d98a1b3ab47af612 (patch) | |
tree | bcc210ea839ef18039abe2c641678e37273c4a63 | |
parent | 8f8147b18947d56475ba8a75e5bb987f00e34cbe (diff) | |
download | dotfiles-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.lua | 25 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 4 |
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 | |||
373 | require('nvim-autopairs').setup({ | ||
374 | disable_filetype = { "TelescopePrompt" }, | ||
375 | }) | ||
376 | |||
377 | require("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 | |||
388 | local Rule = require('nvim-autopairs.rule') | ||
389 | local npairs = require('nvim-autopairs') | ||
390 | |||
391 | npairs.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 |