You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open the command line window with q: I get the following error message:
Error executing vim.schedule lua callback: ...vim-treesitter-context/lua/treesitter-context/render.lua:310: E11: Invalid in command-line window; <CR> executes, CTRL-C quits
stack traceback:
[C]: in function 'nvim_win_close'
...vim-treesitter-context/lua/treesitter-context/render.lua:310: in function <...vim-treesitter-context/lua/treesitter-context/render.lua:308>
Error executing vim.schedule lua callback: ...vim-treesitter-context/lua/treesitter-context/render.lua:310: E11: Invalid in command-line window; <CR> executes, CTRL-C quits
Neovim version
0.9.5
Expected behavior
If the context is not applicable then just don't run it there and avoid the error.
Actual behavior
See description.
Minimal config
localplugins= {
ts='https://github.com/nvim-treesitter/nvim-treesitter',
ts_context='https://github.com/nvim-treesitter/nvim-treesitter-context',
-- ADD ADDITIONAL PLUGINS THAT ARE _NECESSARY_ TO REPRODUCE THE ISSUE
}
forname, urlinpairs(plugins) dolocalinstall_path='/tmp/nvim/site/'..nameifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endvim.o.runtimepath=install_path..','..vim.o.runtimepathend-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
Steps to reproduce
nvim --clean -u minimal.lua
TSInstall
Make sure the setup functions have run for for treesitter and your plugin
Open a file that you installed a parser for in step 2
run q: in normal mode or hit : and follow it with crl+f
The text was updated successfully, but these errors were encountered:
Having the same issue, I was able to reproduce with the minimal config provided on 0.9.5. You just have to make sure to enable treesitter-context. Here's an example:
Description
When I open the command line window with q: I get the following error message:
Neovim version
0.9.5
Expected behavior
If the context is not applicable then just don't run it there and avoid the error.
Actual behavior
See description.
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua
The text was updated successfully, but these errors were encountered: