Light refactoring, move as many config = func uses into opts as

possible.
This commit is contained in:
Martin Larsson 2024-07-12 17:04:53 +02:00
parent 657f9cb7e1
commit 0a53678bb9
10 changed files with 119 additions and 140 deletions

View file

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