This commit is contained in:
2026-01-24 12:03:52 +01:00
parent e4ec848402
commit b6e826eb53
2 changed files with 26 additions and 2 deletions

View File

@ -21,8 +21,8 @@ return {
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),

24
lua/plugins/surround.lua Normal file
View File

@ -0,0 +1,24 @@
return {
"kylechui/nvim-surround",
version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
keymaps = {
visual = "Y",
},
surrounds = {
["("] = {
add = function()
return { { "(" }, { ")" } }
end,
},
["<"] = {
add = function()
return { { "<" }, { ">" } }
end,
},
},
})
end,
}