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:
parent
f8371f0e73
commit
5640194504
2 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue