Restructure and plugin support
This commit is contained in:
parent
f25ee2d0f1
commit
98c59c9553
18 changed files with 226 additions and 1297 deletions
17
lua/autocommands.lua
Normal file
17
lua/autocommands.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-- __ __
|
||||
-- ___ ___ __/ /____ _______ __ _ __ _ ___ ____ ___/ /__
|
||||
-- / _ `/ // / __/ _ \/ __/ _ \/ ' \/ ' \/ _ `/ _ \/ _ (_-<
|
||||
-- \_,_/\_,_/\__/\___/\__/\___/_/_/_/_/_/_/\_,_/_//_/\_,_/___/
|
||||
|
||||
-- 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