nvim-treesitter-context
nvim-treesitter-context copied to clipboard
Error when buffer is not modifiable
I use nvim as git difftool and because buffers are set to nomodifiable I get this kind of error:
Error executing vim.schedule lua callback: ...ugged/nvim-treesitter-context/lua/treesitter-context.lua:492: Buffer is not 'modifiable'
stack traceback:
[C]: in function 'nvim_buf_set_lines'
...ugged/nvim-treesitter-context/lua/treesitter-context.lua:492: in function 'set_lines'
...ugged/nvim-treesitter-context/lua/treesitter-context.lua:626: in function 'open'
...ugged/nvim-treesitter-context/lua/treesitter-context.lua:667: in function 'fn'
...ugged/nvim-treesitter-context/lua/treesitter-context.lua:451: in function ''
vim/_editor.lua: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Is there a way to work around it or to disable treesitter-context just for buffers where it doesn't work?