commit be00a3f6114659deed774474e1a753e2ce136ff0
parent 616663bb37b2ca1265d2b71b7683ca5629e7fcda
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 4 May 2022 17:47:56 +0200
vim: add perlcritic options
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim
@@ -0,0 +1,3 @@
+setlocal formatprg=perltidy
+let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '')
+let b:undo_ftplugin .= 'setlocal formatprg<'
diff --git a/vim/vimrc b/vim/vimrc
@@ -449,6 +449,7 @@ let g:ale_c_clangd_options = '-std=gnu99 -Wall'
let g:ale_c_clangformat_options = '-std=gnu99 -Wall'
let g:ale_c_clangtidy_options = '-std=gnu99 -Wall'
let g:ale_c_clangtidy_extra_options = '-std=gnu99 -Wall'
+let g:ale_perl_perlcritic_options = '--brutal'
" indentLine {{{3
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
let g:indentLine_enable = 0 " off by default