refactor nvim config

This commit is contained in:
Alexander Navarro 2023-04-19 18:14:25 -04:00
parent 8542426d53
commit f4bc3252ee
40 changed files with 798 additions and 1079 deletions

View file

@ -0,0 +1,10 @@
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = "*",
})