✨ nvim-autopairs
This commit is contained in:
parent
49081f4dfb
commit
00d144e1e3
@ -75,18 +75,21 @@ local plugins = {
|
||||
"L3MON4D3/LuaSnip"
|
||||
}
|
||||
},
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
config = function()
|
||||
require("plugins.nvim-autopairs")
|
||||
end
|
||||
},
|
||||
},
|
||||
event = { "InsertEnter", "CmdlineEnter" },
|
||||
config = function()
|
||||
require("plugins/cmp")
|
||||
end
|
||||
},
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
opts = {
|
||||
map_c_w = true,
|
||||
enable_check_bracket_line = true,
|
||||
check_ts = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"Dynge/gitmoji.nvim",
|
||||
ft = "gitcommit",
|
||||
|
@ -102,3 +102,12 @@ cmp.setup.cmdline(':', {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
-- nvim-cmp
|
||||
-- If you want insert `(` after select function or method item
|
||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
local cmp = require('cmp')
|
||||
cmp.event:on(
|
||||
'confirm_done',
|
||||
cmp_autopairs.on_confirm_done()
|
||||
)
|
||||
|
@ -1,9 +0,0 @@
|
||||
local npairs = require("nvim-autopairs")
|
||||
|
||||
npairs.setup({
|
||||
map_bs = true,
|
||||
map_cr = true,
|
||||
map_c_w = true,
|
||||
enable_check_bracket_line = true,
|
||||
check_ts = true,
|
||||
})
|
Loading…
Reference in New Issue
Block a user