mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim: reload file on change
This commit is contained in:
parent
921f86dd59
commit
b1c4a83934
1 changed files with 5 additions and 0 deletions
|
|
@ -70,3 +70,8 @@ vim.api.nvim_create_autocmd("WinLeave", {
|
|||
group = auto_linenr,
|
||||
callback = function() vim.wo.relativenumber = false end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "VimEnter", "FocusGained", "BufEnter" }, {
|
||||
group = vim.api.nvim_create_augroup("ReloadFileOnChange", {}),
|
||||
command = "checktime",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue