nvim : enable autoread.

This commit is contained in:
Dmitry Voronin 2023-12-04 23:35:20 +03:00
parent c23c2ee8c3
commit 82548f6214
2 changed files with 28 additions and 22 deletions

View file

@ -1,24 +1,25 @@
require('plugin/init') require("plugin/init")
require('config/search') require("config/autoread")
require('config/tab') require("config/search")
require('config/etc') require("config/tab")
require("config/etc")
require('key/leader') require("key/leader")
require('key/filetree') require("key/filetree")
require('key/lsp') require("key/lsp")
require('key/whichkey') require("key/whichkey")
require('key/navigation') require("key/navigation")
require('key/comment') require("key/comment")
require('key/gitsigns') require("key/gitsigns")
require('key/trouble') require("key/trouble")
require('key/terminal') require("key/terminal")
require('key/autocomplete') require("key/autocomplete")
require('key/window') require("key/window")
require('key/telescope') require("key/telescope")
require('key/common') require("key/common")
require('key/todo') require("key/todo")
require('key/align') require("key/align")
require('key/fold') require("key/fold")
require('key/update') require("key/update")
require('key/macro') require("key/macro")

View file

@ -0,0 +1,5 @@
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "BufEnter", "CursorHold", "CursorHoldI", "FocusGained" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = { "*" },
})