1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

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

This commit is contained in:
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 endfunction
command! -nargs=1 -complete=shellcmd Cmd silent call Cmd(<q-args>) 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 " Ultisnips
map <Leader>ue :UltiSnipsEdit<cr> map <Leader>ue :UltiSnipsEdit<cr>
" Github actions linter
map <Leader>H :ActionLint<CR>