Questions tagged [nvim-lspconfig]
62 questions
1
vote
1 answer
Auto format and indent code based on the file extension with different formaters in nvim
I have a plugin that autosaves the file. This plugin has hooks like .hook_before_saving etc.
Here is an example:
local autosave = require("autosave")
autosave.hook_before_saving = function ()
if then
vim.g.auto_save_abort =…
user12601679
1
vote
1 answer
Error running config for nvim-lsp- installer
Aparece un error al intentar instalar nvim-LSP-installer y nvim-ispconfig:
packer.nvim: Error running config for nvim-lsp-installer:
...nvim-lsp-installer/lua/nvim-lsp-installer/middleware.lua:1: module 'lspconfig.util' not found:
^Ino field…

Илья Ярусов
- 13
- 1
- 3
1
vote
1 answer
How to triger clnagd.switchSourceHeader using built-in nvim lsp
I used to do it with Coc.nvim
:CocCommand clangd.switchSourceHeader
But now I have moved to built-in nvim lsp and haven't any idea how to the same.
I found this solution for coc, but still dont how to do this for nvim lsp.
execute 'edit'…

i3Cheese
- 15
- 4
1
vote
0 answers
Can `pyright` LSP navigate to different module?
Is pyright goto definition command supposed to jump into the different modules?
I import python class like this from a.b.c import Foo.
When my cursor is on a = Foo() and I call lua vim.lsp.buf.definition() nvim jumps only to the top of the file but…

Lajos
- 2,549
- 6
- 31
- 38
1
vote
1 answer
install a language server lspconfig
When i execute the npm i -g typescript typescript-language-server this is what the terminal return and dont install the language
npm WARN checkPermissions Missing write access to /usr/local/lib
npm WARN notsup Unsupported engine for…
npm WARN notsup Unsupported engine for…

F R E D M
- 11
- 1
1
vote
1 answer
Setup Neovim 0.5 lspconfig and F#
I am trying to setup f# language server with neovim lsp. I have this in init.lua
nvim_lsp.fsautocomplete.setup{
capabilities = capabilities,
on_attach = on_attach,
cmd = {'dotnet', '/Users/aritra/fsautocomplete.netcore/fsautocomplete.dll',…

Aritra Dattagupta
- 760
- 1
- 7
- 22
1
vote
1 answer
Set yaml.schema "kubernetes" for autocompletion with nvim-lspconfig
i try to get kubernetes auto completion going in nvim. I am using neovim nightly (0.5.) with 'neovim-lspconfig' and 'nvim-lua/completion-nvim'.
I installed the yaml-language-sever and it is working fine (i know it is working because it is showing…

Y-Peter
- 47
- 1
- 6
0
votes
0 answers
How to resolve abosulte import relative to src in nvim typescript
This is my first time trying to set up lazy-vim for javascript/typescript development. I have followed multiple blog posts and youtube channel to set things up. And it is working so far. Only problem is, the typescript lsp server is not able to…

Sumit Khaitan
- 1
- 1
0
votes
0 answers
how to specify classpath with java_language_server of neovim?
I setup and config a java language server using ":Lsp install" and lspconfig plugin, but I cannot jump to classes in my project,
I just open single file and for every packages, java language server gives me "package ... does not exist".
my project…

yiminh wang
- 31
- 2
0
votes
1 answer
Neovim, LSP, Mason - Python client not attaching to buffer
In neovim NVIM v0.10.0-dev on Linux Mint.
I wrote my whole config in 'lua' and I'm very happy so far. The only thing thats not working is lsp with python. I configured lsp and cmp and mason, mason-lspconfig. I works great with tex, java and html but…

loz
- 1
- 2
0
votes
1 answer
rust-analyzer doesn't show errors and suggestions neovim
I have updated my arch setup and compiled neovim 0.9.1 on just installed Debian 12.
rust-analyzer doesn't show any messages and doesn't give any autocomplete suggestions.
rust-analyzer is installed by mason, by rustup component add and by npm…

bruh
- 47
- 1
- 6
0
votes
0 answers
Neovim code actions list with mason lsp by extension?
Now I use mason to install all the lsp I need, and I use null_ls for diagnostic and fixing code. But I have problems with code actions, for example in jsx code I want to import useState, I call code actions but the list does not always have the…

mr_scrpt
- 31
- 3
0
votes
0 answers
false errors suggested by neovim which is using nvchad on windows os
screenshot of the issue
this error is present only on window pc and not my ubuntu vm.
programm compiles fine and also runs good.
but i have no idea why and how the errors are suggested
currently my guess is that the clangd lsp server is doing this…

Kalpesh
- 1
0
votes
0 answers
Emmet-ls options won't work in nvim(nvchad)
lua/custom/configs/lspconfig.lua:
lspconfig.emmet_ls.setup {
on_attach = on_attach,
capabilities = capabilities,
filetypes = {
"css",
"eruby",
"html",
"javascript",
"javascriptreact",
"less",
"sass",
"scss",
…

0MR4N
- 91
- 3
0
votes
2 answers
Error while calling lua chunk: vim/_init_packages.lua:0: module 'vim.version' not found:
I've been trying to set up lsp for days now and I just can't understand why it isn't working. I have neovim version 0.9.1 so I should be good with the compatibility. The full error message is attached to the question as an image.
screenshot of…

Andromeda
- 3
- 3