mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nvim): add ssr plugin
This commit is contained in:
24
nvim/after/plugin/ssr.lua
Normal file
24
nvim/after/plugin/ssr.lua
Normal 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)
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user