surround
This commit is contained in:
@ -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
24
lua/plugins/surround.lua
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user