Open
Description
Description
On startup, treesitter-context displays an error. The plugin still seems to behave normally.
Neovim version
v0.9.5
Expected behavior
There should be no errors on startup.
Actual behavior
On startup:
Error detected while processing /home/benjamin/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context/plugin/treesitter-context.lua:
E5113: Error while calling lua chunk: ...start/nvim-treesitter-context/lua/treesitter-context.lua:167: Invalid 'event': 'LspRequest'
stack traceback:
[C]: in function 'nvim_create_autocmd'
...start/nvim-treesitter-context/lua/treesitter-context.lua:167: in function 'autocmd'
...start/nvim-treesitter-context/lua/treesitter-context.lua:239: in function 'enable'
...start/nvim-treesitter-context/lua/treesitter-context.lua:303: in function 'setup'
...rt/nvim-treesitter-context/plugin/treesitter-context.lua:1: in main chunk
Minimal config
return require("packer").startup(function(use)
-- Packer can manage itself
use "wbthomason/packer.nvim"
-- Simple plugins can be specified as strings
use "folke/tokyonight.nvim"
--use 'junegunn/fzf'
use {
"nvim-telescope/telescope.nvim",
tag = "0.1.8", -- or, branch = '0.1.x',
requires = { { "nvim-lua/plenary.nvim" } },
}
-- Treesitter (for syntax highlighting/indentation)
-- nvim has this built-in, but this plugin allows
-- for easier config
use {
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
}
use "nvim-treesitter/nvim-treesitter-context" -- Sticky headers
end)
Steps to reproduce
- Update packages via
:PackerSync
- Quit nvim
- Open nvim
The error will appear