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

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,
}