mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
25 lines
551 B
Lua
25 lines
551 B
Lua
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,
|
|
})
|