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/tab')
require('config/etc')
require("config/autoread")
require("config/search")
require("config/tab")
require("config/etc")
require('key/leader')
require('key/filetree')
require('key/lsp')
require('key/whichkey')
require('key/navigation')
require('key/comment')
require('key/gitsigns')
require('key/trouble')
require('key/terminal')
require('key/autocomplete')
require('key/window')
require('key/telescope')
require('key/common')
require('key/todo')
require('key/align')
require('key/fold')
require('key/update')
require('key/macro')
require("key/leader")
require("key/filetree")
require("key/lsp")
require("key/whichkey")
require("key/navigation")
require("key/comment")
require("key/gitsigns")
require("key/trouble")
require("key/terminal")
require("key/autocomplete")
require("key/window")
require("key/telescope")
require("key/common")
require("key/todo")
require("key/align")
require("key/fold")
require("key/update")
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 = { "*" },
})