diff options
author | Yigit Sever | 2021-11-19 18:29:35 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-19 18:29:35 +0300 |
commit | 6093c9230bddceb7d3698edc5c476651129113f3 (patch) | |
tree | 5e92f75a40a3d3e408a03475c94aae45e9fe9f34 /.config/nvim/after/ftplugin | |
parent | 95dc5ae052b18a9b00afd131d1d921a7767c6e09 (diff) | |
download | dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.gz dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.bz2 dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.zip |
no time sorry!
Diffstat (limited to '.config/nvim/after/ftplugin')
-rw-r--r-- | .config/nvim/after/ftplugin/sh.vim | 11 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/tex.vim | 3 |
2 files changed, 14 insertions, 0 deletions
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 @@ | |||
1 | setg formatprg=cmdfmt\ 80 | ||
2 | |||
3 | function! UpdateFormatprg() | ||
4 | let &g:formatprg = substitute( &g:formatprg , '\d\+$', &textwidth , "" ) | ||
5 | endfunction | ||
6 | |||
7 | augroup UpdateFormatprgGroup | ||
8 | autocmd! | ||
9 | autocmd VimEnter,BufEnter * call UpdateFormatprg() | ||
10 | autocmd OptionSet textwidth call UpdateFormatprg() | ||
11 | 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([{ | |||
17 | \ 'buns': ['\enquote{', '}'], | 17 | \ 'buns': ['\enquote{', '}'], |
18 | \ 'input': ['"'], | 18 | \ 'input': ['"'], |
19 | \ }]) | 19 | \ }]) |
20 | |||
21 | |||
22 | set signcolumn=yes | ||