Add nvim config

This commit is contained in:
Marko Korhonen 2024-09-16 20:40:42 +03:00
parent b227b7cb19
commit 25a48b5694
48 changed files with 1550 additions and 2 deletions

View file

@ -0,0 +1,12 @@
-- Highlight yanked text
local ag = vim.api.nvim_create_augroup
local au = vim.api.nvim_create_autocmd
au('TextYankPost', {
group = ag('yank_highlight', {}),
pattern = '*',
callback = function()
vim.highlight.on_yank { higroup='IncSearch', timeout=300 }
end,
})