summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-10-30 01:34:50 +0300
committerYigit Sever2021-10-30 01:34:50 +0300
commitc47c047cd3ef316bc974d3cf618a0cf46801abe4 (patch)
treee28089e727b74aeb6da78e3e9bd2e9b883bbc1be
parent91afbc45a6aa12aa79b3c672355a6266ed3b8518 (diff)
downloaddotfiles-c47c047cd3ef316bc974d3cf618a0cf46801abe4.tar.gz
dotfiles-c47c047cd3ef316bc974d3cf618a0cf46801abe4.tar.bz2
dotfiles-c47c047cd3ef316bc974d3cf618a0cf46801abe4.zip
nvim: plugin chores
-rw-r--r--.config/nvim/lua/plugin_settings.lua18
-rw-r--r--.config/nvim/lua/plugins.lua6
2 files changed, 8 insertions, 16 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index ec12ea4..ec23325 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -374,23 +374,15 @@ require('nvim-autopairs').setup({
374 disable_filetype = { "TelescopePrompt" }, 374 disable_filetype = { "TelescopePrompt" },
375}) 375})
376 376
377require("nvim-autopairs.completion.cmp").setup({ 377local cmp_autopairs = require('nvim-autopairs.completion.cmp')
378 map_cr = true, -- map <CR> on insert mode 378local cmp = require('cmp')
379 map_complete = true, -- it will auto insert `(` (map_char) after select function or method item 379cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done())
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 380
388local Rule = require('nvim-autopairs.rule') 381local Rule = require('nvim-autopairs.rule')
389local npairs = require('nvim-autopairs') 382local npairs = require('nvim-autopairs')
390 383
391npairs.add_rule(Rule('%"','%"',"remind")) 384npairs.add_rule(Rule('%"','%"',"remind"))
392 385
393
394-- }}} nvim-autopairs -- 386-- }}} nvim-autopairs --
395 387
396-- nvim-tree {{{ -- 388-- nvim-tree {{{ --
@@ -460,3 +452,7 @@ require'nvim-tree'.setup {
460 } 452 }
461} 453}
462-- }}} nvim-tree -- 454-- }}} nvim-tree --
455
456-- nvim-colorizer {{{ --
457require 'colorizer'.setup()
458-- }}} nvim-colorizer --
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index a122768..266ab2c 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -75,11 +75,7 @@ return require('packer').startup(function()
75 config = [[vim.g.undotree_SetFocusWhenToggle = 1]], 75 config = [[vim.g.undotree_SetFocusWhenToggle = 1]],
76 } 76 }
77 -- highlight colors 77 -- highlight colors
78 use { 78 use 'norcalli/nvim-colorizer.lua'
79 'norcalli/nvim-colorizer.lua',
80 ft = {'css', 'javascript', 'vim', 'html', 'dosini'},
81 config = [[require('colorizer').setup {'css', 'javascript', 'vim', 'html', 'dosini'}]],
82 }
83 79
84 -- cutlass suite, x, d, \ys etc. 80 -- cutlass suite, x, d, \ys etc.
85 use { 81 use {