nvim: Add longer yank highlight, standard toc map

Made yank highlight last 0.5s instead of 0.15s.

Moved mapping to display toc for markdown and pandoc files to the vim
standard mapping of gO (by default only enabled for :Man and :help).
Uses :WikiFzfToc, so will only work with wiki.vim
This commit is contained in:
Marty Oehme 2020-07-23 12:23:15 +02:00
parent f8371f0e73
commit 5640194504
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 11 additions and 4 deletions

View file

@ -1,5 +1,5 @@
" will highlight any text which has been yanked
augroup LuaHighlight
augroup LuaHighlightYank
autocmd!
autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank()
autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank{timeout=500}
augroup END