vim: map <leader>H to actionlint on current file

pull/6/head
bretello 2022-04-08 12:07:48 +02:00
parent 75a00b2380
commit 26e313e21e
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 11 additions and 0 deletions

View File

@ -149,3 +149,11 @@ function! Cmd(cmd)
endfunction
command! -nargs=1 -complete=shellcmd Cmd silent call Cmd(<q-args>)
" Call actionlint (github actions linter) on current file
function ActionLint()
call setqflist([])
cexpr system('actionlint --oneline ' . expand('%'))
copen
endfunction
command! ActionLint call ActionLint()

View File

@ -159,3 +159,6 @@ autocmd FileType python nnoremap T :Pytest function --pdb<CR>
" Ultisnips
map <Leader>ue :UltiSnipsEdit<cr>
" Github actions linter
map <Leader>H :ActionLint<CR>