plugins, keymaps + fix formatting
This commit is contained in:
parent
ec6733a0ea
commit
b402f79541
10 changed files with 220 additions and 43 deletions
28
lua/custom/plugins/ssr.lua
Normal file
28
lua/custom/plugins/ssr.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
local M = {
|
||||
'cshuaimin/ssr.nvim',
|
||||
lazy = true,
|
||||
}
|
||||
|
||||
function M.config()
|
||||
require('ssr').setup({
|
||||
border = 'rounded',
|
||||
min_width = 50,
|
||||
min_height = 5,
|
||||
max_width = 120,
|
||||
max_height = 25,
|
||||
adjust_window = true,
|
||||
keymaps = {
|
||||
close = 'q',
|
||||
next_match = 'n',
|
||||
prev_match = 'N',
|
||||
replace_confirm = '<cr>',
|
||||
replace_all = '<leader><cr>',
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
vim.keymap.set({ 'n', 'x' }, '<leader>r', function()
|
||||
require('ssr').open()
|
||||
end)
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue