18 lines
373 B
Lua
18 lines
373 B
Lua
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
|
|
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
|
callback = function()
|
|
vim.highlight.on_yank()
|
|
end,
|
|
group = highlight_group,
|
|
pattern = '*',
|
|
})
|
|
|
|
-- vim.cmd [[
|
|
-- autocmd TermOpen * startinsert
|
|
-- ]]
|
|
|
|
vim.api.nvim_create_autocmd("TermOpen", {
|
|
command = "startinsert"
|
|
})
|