Files
dotfiles/nvim/after/plugin/sad.lua
2022-10-01 20:04:42 +02:00

15 lines
495 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 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 = false, -- split sad window the screen vertically, when set to number
height_ratio = 0.5, -- height ratio of sad window when split horizontally
width_ratio = 0.5, -- height ratio of sad window when split vertically
})