diff options
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 18 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 6 |
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 | ||
377 | require("nvim-autopairs.completion.cmp").setup({ | 377 | local cmp_autopairs = require('nvim-autopairs.completion.cmp') |
378 | map_cr = true, -- map <CR> on insert mode | 378 | local cmp = require('cmp') |
379 | map_complete = true, -- it will auto insert `(` (map_char) after select function or method item | 379 | cmp.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 | ||
388 | local Rule = require('nvim-autopairs.rule') | 381 | local Rule = require('nvim-autopairs.rule') |
389 | local npairs = require('nvim-autopairs') | 382 | local npairs = require('nvim-autopairs') |
390 | 383 | ||
391 | npairs.add_rule(Rule('%"','%"',"remind")) | 384 | npairs.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 {{{ -- | ||
457 | require '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 { |