Add structural search and replace

This commit is contained in:
sfigato 2023-04-16 11:47:05 -03:00
parent 87225d7257
commit 68bc243b11
Signed by: blallo
GPG Key ID: C530464EEDCF489A
2 changed files with 22 additions and 0 deletions

View File

@ -205,3 +205,6 @@ require('config.vgit')
-- coc
require('config.coc')
-- structural search and replace
vim.keymap.set({ "n", "x" }, "<leader>sr", function() require("ssr").open() end)

View File

@ -81,6 +81,25 @@ local function init()
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/vim-vsnip'
-- structural search and replace
use {
"cshuaimin/ssr.nvim",
module = "ssr",
-- Calling setup is optional.
config = function()
require("ssr").setup {
min_width = 50,
min_height = 5,
keymaps = {
close = "q",
next_match = "n",
prev_match = "N",
replace_all = "<leader><cr>",
},
}
end
}
-- Split maximizer
use 'szw/vim-maximizer'