refactor(nvim): move plugin config to the
... `after/plugin` directory
This commit is contained in:
parent
8cf3fed368
commit
7d3b82884c
13 changed files with 4 additions and 14 deletions
19
roles/neovim/files/after/plugin/autopairs.lua
Normal file
19
roles/neovim/files/after/plugin/autopairs.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local status_ok, autopairs = pcall(require, "nvim-autopairs")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
autopairs.setup {}
|
||||
|
||||
local cmp_status_ok, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp")
|
||||
if not cmp_status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local cmp = require "cmp"
|
||||
cmp.event:on(
|
||||
"confirm_done",
|
||||
cmp_autopairs.on_confirm_done {
|
||||
map_char = { tex = "" },
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue