feat: add sad CLI and nvim plugin to find and replace easily

This commit is contained in:
Stefan Imhoff
2022-10-01 18:47:27 +02:00
parent 18f342e614
commit a7a262222c
3 changed files with 19 additions and 1 deletions

14
nvim/after/plugin/sad.lua Normal file
View File

@@ -0,0 +1,14 @@
-- sad.nvim https://github.com/ray-x/sad.nvim
local status_ok, sad = pcall(require, "sad")
if not status_ok then
return
end
sad.setup({
diff = "delta", -- you can use `diff`, `diff-so-fancy`
ls_file = "fd", -- also git ls_file
exact = false, -- exact match
vsplit = true, -- split sad window the screen vertically, when set to number
height_ratio = 0.6, -- height ratio of sad window when split horizontally
width_ratio = 0.6, -- height ratio of sad window when split vertically
})