This commit is contained in:
2025-06-18 14:38:36 +01:00
commit 71b7bd7373
32 changed files with 1494 additions and 0 deletions

26
lua/aucmd.lua Normal file
View File

@ -0,0 +1,26 @@
-- Highlight when yanking (copying) text
-- 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,
})
-- disable spell in terminals
vim.api.nvim_create_autocmd('TermOpen', {
desc = 'disable spell in terminal',
pattern = '*',
callback = function(_)
vim.wo[0].spell = false
end,
})
vim.api.nvim_create_autocmd('BufRead', {
desc = 'disable spell for certain filetypes',
pattern = { '*.out', '*.log' },
callback = function(_)
vim.wo[0].spell = false
end,
})