This commit is contained in:
Jason Swank
2025-10-20 01:07:11 +00:00
parent 8cfa5d009d
commit 47c8f029d4
3 changed files with 13 additions and 4 deletions

View File

@@ -40,8 +40,14 @@ iab idate <c-r>=strftime("%Y-%m-%d")<cr>
" use \ toc to insert a table of contents for markdown from the current line to EOF
nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
" use \ tf to format a buffer as terraform
nmap <leader>tf <cmd>!terraform fmt %<cr>
" use \ tf to format a buffer as tofu / terraform
nmap <leader>tf <cmd>% !tofu fmt -no-color -<cr>
" use \ jn to format a buffer as Jsonnet
nmap <leader>jn <cmd>% !jsonnetfmt -<cr>
" use \ js to format a buffer as JSON
nmap <leader>js <cmd>% !jq . -<cr>
set lazyredraw " redraw only when req'd
set wildmenu " visual auto-complete