reorganise files

This commit is contained in:
Thomas Ruoff
2024-09-20 10:27:06 +02:00
parent ff4eef61b7
commit 46a50d7837
5 changed files with 8 additions and 3 deletions

24
lua/config/autocmd.lua Normal file
View File

@@ -0,0 +1,24 @@
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})
vim.api.nvim_create_autocmd('FileType', {
pattern = {
'checkhealth',
'fugitive*',
'git',
'help',
'lspinfo',
'netrw',
'notify',
'qf',
'query',
},
callback = function()
vim.keymap.set('n', 'q', vim.cmd.close, { desc = 'Close the current buffer', buffer = true })
end,
})