Compare commits

..

4 Commits

Author SHA1 Message Date
Marcin Woźniak
c5f23ff375 Merge branch 'master' of git.yorune.pl:y0rune/myhome 2022-09-03 23:21:53 +02:00
Marcin Woźniak
dc1c804688 Merge branch 'master' of git.yorune.pl:y0rune/myhome 2022-08-29 15:11:24 +02:00
Marcin Woźniak
f8b760c29e Added the lazygit config.yml 2022-08-25 08:55:33 +02:00
Marcin Woźniak
20c40577ae Changed Pritter to shfmt for bash 2022-08-25 08:54:44 +02:00
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,2 @@
gui:
mainPanelSplitMode: "horizontal"

View File

@ -151,6 +151,8 @@ call plug#begin('~/.config/nvim/plugged')
" Tree
Plug 'kyazdani42/nvim-web-devicons'
Plug 'kyazdani42/nvim-tree.lua'
Plug 'z0mbix/vim-shfmt', { 'for': 'sh' }
call plug#end()
" LUA
@ -529,8 +531,12 @@ au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=ya
autocmd BufWritePre *.yaml,*.yml :Prettier <CR>
" Bash
autocmd FileType sh
\ autocmd BufWritePre <buffer> :Prettier <CR>
if executable('shfmt')
let &l:formatprg='shfmt -i ' . &l:shiftwidth . ' -ln posix -sr -ci -s'
endif
let g:shfmt_extra_args = '-i 4 -ci -sr -s'
let g:shfmt_fmt_on_save = 1
" Python
autocmd BufRead,BufNewFile *.py set textwidth=0