Make sure we never add whitespaces using surround

This commit is contained in:
Martin Larsson 2024-01-22 01:03:04 +01:00
parent 80f11b759e
commit 990227893e

View file

@ -3,6 +3,14 @@ return {
version = "*",
event = "VeryLazy",
config = function()
require("nvim-surround").setup({})
require("nvim-surround").setup({
-- Make sure that we never get whitespaces when adding surroundings
surrounds = {
["("] = { add = { "(", ")" }, },
["{"] = { add = { "{", "}" }, },
["<"] = { add = { "<", ">" }, },
["["] = { add = { "[", "]" }, },
}
})
end,
}