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/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")
|
||||
|
|
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