nvim: add gh-md-toc

This commit is contained in:
Jason Swank 2023-12-01 12:13:14 -05:00
parent 8a6cdbb2e2
commit 32f984e25a

View File

@ -37,6 +37,9 @@ let g:UltiSnipsListSnippets="<c-l>"
" typing idate inserts the current date " typing idate inserts the current date
iab idate <c-r>=strftime("%Y-%m-%d")<cr> iab idate <c-r>=strftime("%Y-%m-%d")<cr>
" use Ctrl-M to insert a table of contents for markdown from the current line to EOF
noremap <c-m> <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
set lazyredraw " redraw only when req'd set lazyredraw " redraw only when req'd
set wildmenu " visual auto-complete set wildmenu " visual auto-complete
set showmatch set showmatch
@ -64,6 +67,7 @@ nnoremap <c-p> <cmd>lua require('fzf-lua').files()<CR>
nnoremap <c-\> <cmd>lua require('fzf-lua').buffers()<CR> nnoremap <c-\> <cmd>lua require('fzf-lua').buffers()<CR>
nnoremap <c-g> <cmd>lua require('fzf-lua').grep()<CR> nnoremap <c-g> <cmd>lua require('fzf-lua').grep()<CR>
" "
" GO stuff " GO stuff
" "