Skip to content

Commit

Permalink
NVIM: lua: Added sad plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerm1nt committed Mar 5, 2022
1 parent 6594bbd commit e86248a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ call plug#begin('~/.vim/plugged')
Plug 'jiangmiao/auto-pairs'
Plug 'qpkorr/vim-bufkill'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'ray-x/guihua.lua' "lua GUI lib
Plug 'ray-x/sad.nvim'

call plug#end()

Expand Down
12 changes: 12 additions & 0 deletions nvim/lua/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- Sad plugin setup

require'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
-- it is a threadhold when window is larger than the threshold sad will split vertically,
height_ratio = 0.6, -- height ratio of sad window when split horizontally
width_ratio = 0.6, -- height ratio of sad window when split vertically

})

0 comments on commit e86248a

Please sign in to comment.