change config to multifile

This commit is contained in:
Miguel Da Silva 2024-09-10 18:30:02 +02:00
parent d106be5558
commit bc23503b46
6 changed files with 974 additions and 1064 deletions

12
lua/autocmds.lua Normal file
View file

@ -0,0 +1,12 @@
-- See `:help lua-guide-autocommands`
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
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,
})