Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid 'event': 'LspRequest' #549

Open
benjamin051000 opened this issue Jan 4, 2025 · 0 comments
Open

Invalid 'event': 'LspRequest' #549

benjamin051000 opened this issue Jan 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@benjamin051000
Copy link

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

  1. Update packages via :PackerSync
  2. Quit nvim
  3. Open nvim

The error will appear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant