14 lines
468 B
Lua
14 lines
468 B
Lua
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "TermLeave" }, {
|
|
desc = "Reload externally changed files without discarding unsaved edits",
|
|
group = vim.api.nvim_create_augroup("lux-checktime", { clear = true }),
|
|
command = "checktime",
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
|
desc = "Highlight yanked text",
|
|
group = vim.api.nvim_create_augroup("lux-highlight-yank", { clear = true }),
|
|
callback = function()
|
|
vim.hl.on_yank()
|
|
end,
|
|
})
|