Rename nvim config folder (trying kickstart.nvim)

This commit is contained in:
Sheldon Lee 2024-10-16 21:20:51 +08:00
parent 3cc8447717
commit da2086f561
7 changed files with 8 additions and 0 deletions

View File

@ -37,3 +37,11 @@ vim.api.nvim_create_autocmd('BufWritePre', {
command = 'silent! Neoformat', command = 'silent! Neoformat',
group = vim.api.nvim_create_augroup('Neoformat', {}), group = vim.api.nvim_create_augroup('Neoformat', {}),
}) })
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})