feat: split config into files
This commit is contained in:
parent
d8067a8048
commit
3bab44631f
7 changed files with 917 additions and 880 deletions
13
lua/config/autocommands.lua
Normal file
13
lua/config/autocommands.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- [[ Basic Autocommands ]]
|
||||
-- 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,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue