vim: Added autoformatting

This commit is contained in:
Craige McWhirter 2021-03-19 15:13:02 +10:00
parent 515a6039cb
commit 57b8cd268e
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -37,6 +37,7 @@ vim_configurable.customize {
autocmd FileAppendPre * :call TrimWhiteSpace() autocmd FileAppendPre * :call TrimWhiteSpace()
autocmd FilterWritePre * :call TrimWhiteSpace() autocmd FilterWritePre * :call TrimWhiteSpace()
autocmd BufWritePre * :call TrimWhiteSpace() autocmd BufWritePre * :call TrimWhiteSpace()
autocmd BufWrite * :Autoformat
" FIXME: Currently always set to dark due to issues with Termonad Solarized theme " FIXME: Currently always set to dark due to issues with Termonad Solarized theme
" Light during the day, dark during the night " Light during the day, dark during the night
@ -273,6 +274,7 @@ vim_configurable.customize {
tabular # Script for text filtering and alignment tabular # Script for text filtering and alignment
vim-addon-nix # Scripts assisting writing .nix files vim-addon-nix # Scripts assisting writing .nix files
vim-airline-themes # Collection of themes for airline vim-airline-themes # Collection of themes for airline
vim-autoformat # Automatically format code
vim-colorschemes # Collection of ViM colour schemes vim-colorschemes # Collection of ViM colour schemes
vim-cue # Cue filetype plugin for Vim vim-cue # Cue filetype plugin for Vim
vim-nix # Support for writing Nix expressions in vim vim-nix # Support for writing Nix expressions in vim