mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-11-14 05:21:13 +00:00
23 lines
603 B
Lua
23 lines
603 B
Lua
-- Setup nvim-cmp.
|
|
require("nvim-autopairs").setup({
|
|
check_ts = true,
|
|
disable_filetype = { "TelescopePrompt", "neo-tree" },
|
|
ts_config = {
|
|
lua = { "string", "source" },
|
|
},
|
|
fast_wrap = {
|
|
map = "<M-e>",
|
|
chars = { "{", "[", "(", '"', "'" },
|
|
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""),
|
|
offset = 0,
|
|
end_key = "$",
|
|
keys = "qwertyuiopzxcvbnmasdfghjkl",
|
|
check_comma = true,
|
|
highlight = "PmenuSel",
|
|
highlight_grey = "LineNr",
|
|
},
|
|
})
|
|
|
|
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
|
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done({}))
|