1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 18:38:00 +00:00

[neovim] Add sad plugin

This commit is contained in:
Daniel Carrillo 2022-10-08 18:58:34 +02:00
parent 33790440f2
commit 017ba8baa2
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 15 additions and 0 deletions

View File

@ -25,3 +25,4 @@ require("user.autosave")
require("user.markdowntoc") require("user.markdowntoc")
require("user.session-manager") require("user.session-manager")
require("user.diffview") require("user.diffview")
require("user.sad")

View File

@ -57,6 +57,7 @@ return packer.startup(function(use)
use({ "mg979/vim-visual-multi", tag = "v0.*" }) use({ "mg979/vim-visual-multi", tag = "v0.*" })
use({ "Shatur/neovim-session-manager", commit = "4005dac93f5cd1257792259ef4df6af0e3afc213" }) use({ "Shatur/neovim-session-manager", commit = "4005dac93f5cd1257792259ef4df6af0e3afc213" })
use({ "nvim-treesitter/nvim-treesitter", commit = "b273a06728305c1e7bd0179977ca48049aeff5e6" }) use({ "nvim-treesitter/nvim-treesitter", commit = "b273a06728305c1e7bd0179977ca48049aeff5e6" })
use({ "ray-x/sad.nvim", commit = "01b7d84f4f73c8963f5933f09e88c833757bc7d8" })
use({ use({
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
branch = "v2.x", branch = "v2.x",

View File

@ -0,0 +1,13 @@
local status_ok, sad = pcall(require, "sad")
if not status_ok then
return
end
sad.setup({
diff = "delta",
ls_file = "fd",
exact = false,
vsplit = false,
height_ratio = 0.7,
width_ratio = 0.7,
})