nvim: Highlight on yank
Anirudh Oppiliappan x@icyphox.sh
Tue, 13 Jul 2021 19:55:41 +0530
2 files changed,
4 insertions(+),
2 deletions(-)
M
config/nvim/lua/settings.lua
→
config/nvim/lua/settings.lua
@@ -41,9 +41,11 @@ *.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb
*.swp,.lock,.DS_Store,._* ]] +vim.cmd("syntax on") -- i couldn't figure out how to set the colorscheme in lua -vim.cmd('syntax on') vim.cmd('colorscheme plain') + +vim.cmd('au TextYankPost * lua vim.highlight.on_yank{timeout=200}') o.background = 'dark' -- gitgutter options