nvim : enable autoread.
This commit is contained in:
parent
c23c2ee8c3
commit
82548f6214
|
@ -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")
|
||||||
|
|
5
.config/nvim/lua/config/autoread.lua
Normal file
5
.config/nvim/lua/config/autoread.lua
Normal 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 = { "*" },
|
||||||
|
})
|
Reference in a new issue