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
I'm encountering an error when using typescript-tool.nvim with lspsaga for code actions. The error message I receive is:
lspsaga error executing lua callback: codeaction/init.lua:265: attempt to index a nil value
This issue only occurs when I use typescript-tool.nvim as the LSP plugin for TypeScript. When I switch to vscode-typescript-language-server (vtsls), the error does not appear, and everything works as expected.
Steps to Reproduce
Install typescript-tool.nvim and lspsaga plugins.
Configure Neovim to use typescript-tool.nvim as the LSP for TypeScript.
Trigger a code action via lspsaga (e.g., select a piece of code and run Lspsaga code_action).
Observe the error.
Expected Behavior
Code actions should work without any errors.
Actual Behavior
When triggering a code action, the following error appears:
lspsaga error executing lua callback: codeaction/init.lua:265: attempt to index a nil value
Environment
Neovim Version: NVIM v0.10.1
typescript-tool.nvim Version: (latest)
lspsaga Version: (latest)
Operating System: Windows 11
Configuration Snippet
Here is the relevant part of my Neovim configuration:
Description
I'm encountering an error when using
typescript-tool.nvim
withlspsaga
for code actions. The error message I receive is:lspsaga error executing lua callback: codeaction/init.lua:265: attempt to index a nil value
This issue only occurs when I use
typescript-tool.nvim
as the LSP plugin for TypeScript. When I switch tovscode-typescript-language-server
(vtsls
), the error does not appear, and everything works as expected.Steps to Reproduce
typescript-tool.nvim
andlspsaga
plugins.typescript-tool.nvim
as the LSP for TypeScript.lspsaga
(e.g., select a piece of code and runLspsaga code_action
).Expected Behavior
Code actions should work without any errors.
Actual Behavior
When triggering a code action, the following error appears:
lspsaga error executing lua callback: codeaction/init.lua:265: attempt to index a nil value
Environment
Configuration Snippet
Here is the relevant part of my Neovim configuration:
The text was updated successfully, but these errors were encountered: