mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
reorganise files
This commit is contained in:
24
lua/config/autocmd.lua
Normal file
24
lua/config/autocmd.lua
Normal 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,
|
||||
})
|
||||
Reference in New Issue
Block a user