diff --git a/.config/nvim/lua/plugins/surround.lua b/.config/nvim/lua/plugins/surround.lua index 5907810..b4bfb92 100644 --- a/.config/nvim/lua/plugins/surround.lua +++ b/.config/nvim/lua/plugins/surround.lua @@ -1,6 +1,21 @@ return { - "kylechui/nvim-surround", - event = { "BufReadPre", "BufNewFile" }, - version = "*", + 'kylechui/nvim-surround', + event = { 'BufReadPre', 'BufNewFile' }, + version = '*', config = true, + opts = { + keymaps = { + insert = 's', + insert_line = 'S', + normal = 'ys', + normal_cur = 'yss', + normal_line = 'yS', + normal_cur_line = 'ySS', + visual = 'S', + visual_line = 'gS', + delete = 'ds', + change = 'cs', + change_line = 'cS', + }, + }, }