Make sure we never add whitespaces using surround
This commit is contained in:
parent
80f11b759e
commit
990227893e
1 changed files with 9 additions and 1 deletions
|
|
@ -3,6 +3,14 @@ return {
|
||||||
version = "*",
|
version = "*",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue