plugins, keymaps + fix formatting

This commit is contained in:
Noah Håkansson 2024-01-30 10:38:13 +01:00
parent ec6733a0ea
commit b402f79541
10 changed files with 220 additions and 43 deletions

View 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