mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +01:00
vim: map <leader>H to actionlint on current file
This commit is contained in:
parent
75a00b2380
commit
26e313e21e
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user