Add structural search and replace
This commit is contained in:
parent
87225d7257
commit
68bc243b11
3
init.lua
3
init.lua
|
@ -205,3 +205,6 @@ require('config.vgit')
|
||||||
|
|
||||||
-- coc
|
-- coc
|
||||||
require('config.coc')
|
require('config.coc')
|
||||||
|
|
||||||
|
-- structural search and replace
|
||||||
|
vim.keymap.set({ "n", "x" }, "<leader>sr", function() require("ssr").open() end)
|
||||||
|
|
|
@ -81,6 +81,25 @@ local function init()
|
||||||
use 'hrsh7th/cmp-vsnip'
|
use 'hrsh7th/cmp-vsnip'
|
||||||
use 'hrsh7th/vim-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
|
-- Split maximizer
|
||||||
use 'szw/vim-maximizer'
|
use 'szw/vim-maximizer'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user