23 lines
424 B
Lua
23 lines
424 B
Lua
local ok, surround_conf = pcall(require, "nvim-surround")
|
|
if not ok then
|
|
vim.nofify("nvim-surround load error")
|
|
return
|
|
end
|
|
|
|
surround_conf.setup({
|
|
keymaps = {
|
|
insert = "<C-g>s",
|
|
insert_line = "<C-g>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",
|
|
},
|
|
})
|
|
|