feat(nvim): add ssr plugin

This commit is contained in:
Stefan Imhoff
2022-11-14 13:05:00 +01:00
parent cbc6cb6813
commit e89725929d
2 changed files with 25 additions and 0 deletions

24
nvim/after/plugin/ssr.lua Normal file
View File

@@ -0,0 +1,24 @@
--
local status, ssr = pcall(require, "ssr")
if not status then
return
end
local keymap = vim.keymap.set
local opts = { noremap = true, silent = true }
ssr.setup({
min_width = 50,
min_height = 5,
keymaps = {
close = "q",
next_match = "n",
prev_match = "N",
replace_all = "<leader><cr>",
},
})
-- Keymaps
keymap({ "n", "x" }, "<leader>sr", function()
require("ssr").open()
end, opts)

View File

@@ -168,6 +168,7 @@ return packer.startup(function(use)
use("dbeniamine/cheat.sh-vim") -- Cheat.sh
use("wakatime/vim-wakatime") -- Wakatime
use("github/copilot.vim") -- GitHub Copilot
use("cshuaimin/ssr.nvim") -- Structural search and replace
-- Custom Text Objects
use("christoomey/vim-titlecase")