diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 25b0dec..2a6ac57 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -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({ [""] = cmp.mapping.scroll_docs(-4), diff --git a/lua/plugins/surround.lua b/lua/plugins/surround.lua new file mode 100644 index 0000000..b0b8686 --- /dev/null +++ b/lua/plugins/surround.lua @@ -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, +}