Questions tagged [nvim-lspconfig]
62 questions
0
votes
0 answers
Lspsaga.nvim throws error on hover_doc command
It throws Error executing vim.schedule lua callback: ...ite\pack\packer\start\lspsaga.nvim/lua/lspsaga/hover.lua:155: attempt to call field 'set' (a nil value)
stack traceback:
...ite\pack\packer\start\lspsaga.nvim/lua/lspsaga/hover.lua:155: in…

Amit Kumar
- 43
- 2
- 7
0
votes
1 answer
How to silence linter for eslint
This is the setting I have in my nvim config file
local servers = { 'tsserver', 'eslint', 'bashls' }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
capabilities = capabilities,
on_attach = on_attach,
…

abbood
- 23,101
- 16
- 132
- 246
0
votes
0 answers
Neovim freezes after saving .env file in my React project
I have a React application and use NeoVim as my editor with LSP.
Everything works properly until I try to save changes in my .env file, with :w action. This action takes up to 10 seconds to finish and everything freezes during that.
All other files…

Vakho Nakashidze
- 51
- 3
0
votes
0 answers
How can you include referenced libraries in neovim lsp using jdtls?
I have a java library in a folder in my home folder (on linux) and I've been trying to edit my neovim config to let it be available for any java project. I'm having trouble finding the exact config I need though. I'm using lspconfig, and have tried…

Nathonion
- 51
- 5
0
votes
1 answer
Neovim starting multiple LSP clients for each buffer
I recently realized that my neovim automatically spawns the same language server (in this case, tsserver and tailwindcss) everytime I open a file.
Everything works fine when opening the first file
However, once I opened another file, it starts…

Andrew
- 592
- 1
- 7
- 17
0
votes
1 answer
After updating neovim to 0.81 and all plugins to latest release, autocmd to highlight words on cursor hold is not working on certain languages
I have an auto command highlight words on cursor hold and this autocmd gets attached to buffer when the LSP server has the capability of documentFormattingProvider.
After updating neovim to 0.81 and all the plugins and language servers. The…

Sami Al-Subhi
- 4,406
- 9
- 39
- 66
0
votes
2 answers
neovim's lsp does not show error messages
i have a neovim config which contains lsp configuration
on my laptop i have neovim 0.7.2 which works perfectly
but on my desktop i have neovim 0.8.0 and lsp still works but does not show error massages.
this is my config
vim.opt.tabstop =…

bruh
- 47
- 1
- 6
0
votes
0 answers
nvim-cmp [tsserver]: error on auto-import : Expected the specifier to be a default export
Since 2 months that my auto-import doesn't work on nvim-cmp. Today I want to fix this :
Auto-import work on full TS projects
Doesn't work on this hybrid project
Below you can find the TSServer error, Babel config, JSConfig, TSConfig
Thank for the…

Dorian Maliszewski
- 821
- 1
- 10
- 14
0
votes
1 answer
Neovim LSP capabilities not exported in Mason
I am new to Neovim and lua as programming language. I am trying to setup a Neovim as a full complete IDE.
My issue deals with Mason and LSP capabilities. It seems that my LSP server is executing but my configuration is not correctly setup properly.…

JPV
- 1,079
- 1
- 18
- 44
0
votes
1 answer
NeoVim-Lua-nvim-lspconfig-ccls: NO IntelliSense, Code Snippets, or Description popup, for C++
1. Using MacOS Catalina: Setting up NVIM-LUA-nvim-lspconfig-ccls, for lua and C++:
2. Build ccls: Following: https://github.com/MaskRay/ccls/wiki/Build
$ brew install ccls
Note: I am NOT clear about additional instruction by mask ray, for brew…

tom_kp
- 21
- 4
0
votes
0 answers
Neovim clangd not indexing all include files
I have a massive C project that is build by cmake, I generate the compile_commands.json and all the includes are there, but for example in main.c it cannot find libxml/parser.h.
In the compile_commands.json main.c is compiled with
arm-none-eabi-gcc…

Gian Laager
- 474
- 4
- 14
0
votes
0 answers
LSP config ttserver suggests the same completions
I faced with problem that ttserver in LSP config suggests me certain the same suggestions depended on different servers. Here is an example below
example - https://i.stack.imgur.com/5K31A.png
Here is my lsp config too
lsp-config -…

arteche
- 1
- 1
0
votes
2 answers
why does lsp clangd linting throws an error "bits/c++config.h file not found?
lsp linting clangd throws a linting error
when doing an include
e.g
#include error bits/c++config.h file not found
I already installed mingw(via choco install) and added it to my path
also tried added the includes
enter image description…

reiend
- 1
- 2
0
votes
1 answer
How do I 'better' my paths to lsp server binaries whilst using nvim-lsp-install?
At the moment, every time I install a new LPS server using nvim-lsp-installer, I add an entry to my .zshenv, so that the bin folder of the server is available to $PATH:
PATH="$HOME/.local/share/nvim/lsp_servers/python/node_modules/.bin:$PATH"
The…

bob_banana
- 3
- 2
0
votes
1 answer
csharp_ls not working with Neovim built-in lsp
I installed csharp_ls like in official nvim lsp docs.
I have dotnet-sdk installed:
$ dotnet --version
5.0.205
as well as csharp-ls:
$ whereis csharp-ls
csharp-ls: /home/user/.dotnet/tools/csharp-ls
But when I try to run it in neovim, I get this…

himynameisgarch
- 87
- 2
- 9