From c47c047cd3ef316bc974d3cf618a0cf46801abe4 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 30 Oct 2021 01:34:50 +0300 Subject: nvim: plugin chores --- .config/nvim/lua/plugin_settings.lua | 18 +++++++----------- .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({ disable_filetype = { "TelescopePrompt" }, }) -require("nvim-autopairs.completion.cmp").setup({ - map_cr = true, -- map on insert mode - map_complete = true, -- it will auto insert `(` (map_char) after select function or method item - auto_select = true, -- automatically select the first item - insert = false, -- use insert confirm behavior instead of replace - map_char = { -- modifies the function or method delimiter by filetypes - all = '(', - tex = '{' - } -}) +local cmp_autopairs = require('nvim-autopairs.completion.cmp') +local cmp = require('cmp') +cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done()) local Rule = require('nvim-autopairs.rule') local npairs = require('nvim-autopairs') npairs.add_rule(Rule('%"','%"',"remind")) - -- }}} nvim-autopairs -- -- nvim-tree {{{ -- @@ -460,3 +452,7 @@ require'nvim-tree'.setup { } } -- }}} nvim-tree -- + +-- nvim-colorizer {{{ -- +require 'colorizer'.setup() +-- }}} 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() config = [[vim.g.undotree_SetFocusWhenToggle = 1]], } -- highlight colors - use { - 'norcalli/nvim-colorizer.lua', - ft = {'css', 'javascript', 'vim', 'html', 'dosini'}, - config = [[require('colorizer').setup {'css', 'javascript', 'vim', 'html', 'dosini'}]], - } + use 'norcalli/nvim-colorizer.lua' -- cutlass suite, x, d, \ys etc. use { -- cgit v1.2.3-70-g09d2