Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.12.0-dev-1074+g58060c2340
Operating system/version
Windows wsl 2
Describe the bug
When I open trouble diagnostics or sending snacks selection to trouble, i get this error.
vim.schedule callback: ...e/nvim/lazy/trouble.nvim/lua/trouble/view/treesitter.lua:34: invalid key: on_range
stack traceback:
[C]: in function 'nvim_set_decoration_provider'
...e/nvim/lazy/trouble.nvim/lua/trouble/view/treesitter.lua:34: in function 'setup'
...e/nvim/lazy/trouble.nvim/lua/trouble/view/treesitter.lua:56: in function 'attach'
...l/share/nvim/lazy/trouble.nvim/lua/trouble/view/text.lua:187: in function <...l/share/nvim/lazy/trouble.nvim/lua/trouble/view/text.lua:180>
I noticed this happened after I switched from treesitter master to main
Steps To Reproduce
Reproducing requires setting up lsp or a picker, so using LazyVim without customisation does the trick
- Create a file named repro.lua
- Paste this into the file
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"LazyVim/LazyVim",
import = "lazyvim.plugins",
opts = { colorscheme = "catppuccin" },
},
},
})
- Run with
- After installation is complete, open the file picker (snacks by default) with
<leader>ff
- Select some files with
<Tab>
- Send the files to trouble with
<Alt-T>
Expected Behavior
It is suppose to open trouble without errors.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"LazyVim/LazyVim",
import = "lazyvim.plugins",
opts = { colorscheme = "catppuccin" },
},
},
})
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.12.0-dev-1074+g58060c2340
Operating system/version
Windows wsl 2
Describe the bug
When I open trouble diagnostics or sending snacks selection to trouble, i get this error.
I noticed this happened after I switched from treesitter master to main
Steps To Reproduce
Reproducing requires setting up lsp or a picker, so using
LazyVimwithout customisation does the trick<leader>ff<Tab><Alt-T>Expected Behavior
It is suppose to open trouble without errors.
Repro