[nvim] cleanup: remove nvim-autopairs
This commit is contained in:
parent
1545ec85da
commit
0c8d9ac4c1
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
local luasnip = require("luasnip")
|
local luasnip = require("luasnip")
|
||||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
|
||||||
|
|
||||||
local has_words_before = function()
|
local has_words_before = function()
|
||||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
@ -14,9 +13,6 @@ local has_words_before = function()
|
|||||||
sub(col, col):match('%s') == nil
|
sub(col, col):match('%s') == nil
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If you want insert `(` after select function or method item
|
|
||||||
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
|
||||||
|
|
||||||
-- Custom item icons
|
-- Custom item icons
|
||||||
local icons = { }
|
local icons = { }
|
||||||
|
|
||||||
|
@ -118,13 +118,6 @@ return require("packer").startup(function()
|
|||||||
config = function() require("plugin.comment") end
|
config = function() require("plugin.comment") end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- autopairs
|
|
||||||
use {
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
config = function() require("nvim-autopairs").setup() end
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- automatically setup the config after cloning
|
-- automatically setup the config after cloning
|
||||||
if PACKER_BOOTSTRAP then
|
if PACKER_BOOTSTRAP then
|
||||||
require("packer").sync()
|
require("packer").sync()
|
||||||
|
Reference in New Issue
Block a user