Yes, in my experience the autoread option is about as much use as a chocolate fire-guard so a rewrite that makes it work (as I expect, anyway) would be great
Tried that and it does work, but when it detects changes it isn’t very graceful, it spawns 1/2 a screen high error message in red. That what it does for you too?
Here is the error I get. I open/switch buffers with Telescope so maybe that is the issue?
5108: Error executing lua .../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:81: Vim(append):Error executing lua callback: vim/filetype.lua:0: Vim(append):Error executing lua callback: ...treesitter/lua/nvim-treesitter/incremental_selection.lua:1
43: E31: No such mapping
stack traceback:
[C]: in function 'nvim_buf_del_keymap'
...treesitter/lua/nvim-treesitter/incremental_selection.lua:143: in function 'detach'
...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:478: in function 'detach_module'
...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:487: in function 'reattach_module'
...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:106: in function <...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:105>
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function 'match'
...ocal/Cellar/neovim/0.7.0/share/nvim/runtime/filetype.lua:15: in function <...ocal/Cellar/neovim/0.7.0/share/nvim/runtime/filetype.lua:14>
[C]: in function 'cmd'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:81: in function 'edit_buffer'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:148: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
...ack/packer/opt/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function 'match'
...ocal/Cellar/neovim/0.7.0/share/nvim/runtime/filetype.lua:15: in function <...ocal/Cellar/neovim/0.7.0/share/nvim/runtime/filetype.lua:14>
[C]: in function 'cmd'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:81: in function 'edit_buffer'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:148: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
...ack/packer/opt/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function 'cmd'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:81: in function 'edit_buffer'
.../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:148: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
...ack/packer/opt/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
[string ":lua"]:1: in main chunk