From 6093c9230bddceb7d3698edc5c476651129113f3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 19 Nov 2021 18:29:35 +0300 Subject: no time sorry! --- .config/nvim/after/ftplugin/sh.vim | 11 +++++++++++ .config/nvim/after/ftplugin/tex.vim | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 .config/nvim/after/ftplugin/sh.vim (limited to '.config/nvim/after/ftplugin') diff --git a/.config/nvim/after/ftplugin/sh.vim b/.config/nvim/after/ftplugin/sh.vim new file mode 100644 index 0000000..d735bee --- /dev/null +++ b/.config/nvim/after/ftplugin/sh.vim @@ -0,0 +1,11 @@ +setg formatprg=cmdfmt\ 80 + +function! UpdateFormatprg() + let &g:formatprg = substitute( &g:formatprg , '\d\+$', &textwidth , "" ) +endfunction + +augroup UpdateFormatprgGroup + autocmd! + autocmd VimEnter,BufEnter * call UpdateFormatprg() + autocmd OptionSet textwidth call UpdateFormatprg() +augroup END diff --git a/.config/nvim/after/ftplugin/tex.vim b/.config/nvim/after/ftplugin/tex.vim index 27b002a..8ca7f23 100644 --- a/.config/nvim/after/ftplugin/tex.vim +++ b/.config/nvim/after/ftplugin/tex.vim @@ -17,3 +17,6 @@ call sandwich#util#addlocal([{ \ 'buns': ['\enquote{', '}'], \ 'input': ['"'], \ }]) + + +set signcolumn=yes -- cgit v1.2.3-70-g09d2