summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-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 {