change config to multifile
This commit is contained in:
parent
d106be5558
commit
bc23503b46
6 changed files with 974 additions and 1064 deletions
12
lua/autocmds.lua
Normal file
12
lua/autocmds.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-- 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