diff --git a/vim/functions.vim b/vim/functions.vim index a0fd1f0..0794e15 100644 --- a/vim/functions.vim +++ b/vim/functions.vim @@ -150,10 +150,3 @@ endfunction command! -nargs=1 -complete=shellcmd Cmd silent call Cmd() -" Call actionlint (github actions linter) on current file -function ActionLint() - call setqflist([]) - cexpr system('actionlint --oneline ' . expand('%')) - copen -endfunction -command! ActionLint call ActionLint() diff --git a/vim/shortcuts.vim b/vim/shortcuts.vim index 7e7f704..1b22389 100644 --- a/vim/shortcuts.vim +++ b/vim/shortcuts.vim @@ -159,6 +159,3 @@ autocmd FileType python nnoremap T :Pytest function --pdb " Ultisnips map ue :UltiSnipsEdit - -" Github actions linter -map H :ActionLint diff --git a/vim/vimrc b/vim/vimrc index 3ab48c2..60fcf9c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -75,6 +75,8 @@ au BufRead *.dvc let b:ale_fix_on_save=0 au BufRead *.dvc set filetype=yaml au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible +au BufRead,BufNewFile */.github/*/*.y{,a}ml + \ let b:ale_linters = {'yaml': ['actionlint'] } au BufRead,BufNewFile rules.v[46] *.rules setlocal filetype=iptables if has('persistent_undo')