Questions tagged [nvim-lspconfig]

62 questions
15
votes
2 answers

Nvim lsp - change lspconfig diagnostic message location

i ran into a problem, when im using neovim (+ lspconfig with hie set up), i have diagnostics info inline, but sometime, i cant read the whole line: is there a way for me to see the whole message? i searched on the net to find a way to put the…
Nathan
  • 493
  • 1
  • 3
  • 13
7
votes
1 answer

How to accept nvim lsp suggestions?

To give a simple example. Having a variable or function misspelled, the LS gives a suggestion "Cannot find name 'voteings'. Did you mean 'votings'? Is there a way to quickly accept those suggestion?
6
votes
1 answer

Neovim built-in LSP shows No code actions available for Python files

When I open a python file, diagnostics seem to be working fine. Then I navigate to a line with a diagnostic error, press the shortcut to invoke code actions ('ca' in my case) and I get a message 'No code actions available'. I have tried…
4
votes
2 answers

Neovim - How to filter out text snippets from nvim-lspconfig + nvim-cmp

I'm using NeoVim with autocomplete using nvim-lspconfig and nvim-cmp. I would like to know if there's a way of filtering out text feeds from the autocompletion menu, so that they don't appear in the contextual menu:
Massimiliano
  • 615
  • 4
  • 15
4
votes
1 answer

How to apply multiple auto fixes with nvim LSP

In nvim, using LSP, i want to be able to apply a 'fix all of the same type' similar to what can be done in VSCode (see picture). How would one go about adding this to LSP code actions? Edit: I know this can be done using COC. But i want it for LSP.
Simon
  • 621
  • 4
  • 21
4
votes
2 answers

Neovim (nvim) unable to find local Python modules

I'm trying to use nvim 0.6 as my IDE and I'm working on a large project that has several local modules (located in the same directory as the main Python script, not installed through pip). When I use VSCode, these modules are imported just fine.…
user2597451
  • 1,903
  • 2
  • 12
  • 10
3
votes
1 answer

rust-analyzer on neovim not working on macOS

I am using NeoVim with NvChad default configs on a M1 mac. Trying to edit a .rs file. Neovim lsp shows snippets but no error or autocompletion. What I did I have installed rust-analyzer with Mason and configured #…
3
votes
5 answers

Spawning language server with cmd`diagnostic-languageserver`failed. The language server is either not installed, missing from PATH, or not executable

enter image description here " Spawning language server with cmd: diagnostic-languageserver failed. The language server is either not installed, missing from PATH, or not executable " nvim problem i copied devaslife's dotfiles and installed…
Gowtham V
  • 67
  • 1
  • 2
  • 7
2
votes
1 answer

Is it possible to override or augment neovim's LSP configuration via a workspace config file?

I am using Neovim for C++ development (currently AstroNvim, and previously used LazyVim), and like it a lot. Usually I do not have any issues with the defaults for nvim-lspconfig and mason - the standard clangd server downloaded by mason from the…
Todor Todorov
  • 109
  • 1
  • 9
2
votes
1 answer

Omnisharp C# LSP with Neovim on Windows

As the title says I need help with setting up C# LSP with Omnisharp. I have already installed the latest version. I downloaded omnisharp-win-x64.zip from the releases page and extracted it to a custom directory. I have nvim-lspconfig installed and…
YJH16120
  • 419
  • 1
  • 4
  • 15
2
votes
0 answers

Neovim native LSP for TailwindCSS slow to respond

I've been using Neovim with native LSP for TailwindCSS, which is a popular utility-first CSS framework. While the other language servers work fine, I've noticed that the TailwindCSS language server often takes a long time to respond, causing delays…
Sadik Saifi
  • 390
  • 2
  • 9
2
votes
1 answer

Fix pyrIght warning "Import [module] could not be resolved"?

I have the following Projects folder structure: and the file Tasks/Scripts/test.py (shown below) attaches util.py from Libs/PyLibs: The file test.py executes fine without any issue, but I cannot get rid of the import warning (I am using latest…
Manojit
  • 611
  • 1
  • 8
  • 18
2
votes
0 answers

Nvim LSP dartls is unable to start

I would like to configure a development environment for flutter, I just configured flutter and android studio and I already got a started app running. Now I just need to configure the dartls, I've been playing around with the cmd property since it…
Jeremy
  • 1,447
  • 20
  • 40
2
votes
2 answers

How do I setup elixir-ls using nvim-lspconfig with autocompletion in neovim?

I would like to set up the Elixir language server in Neovim using the built-in language server client and nvim-lspconfig. Documentation for this seems to be spread out in multiple places: nvim-lspconfig README nvim-lspconfig wiki about…
Adam Millerchip
  • 20,844
  • 5
  • 51
  • 74
2
votes
1 answer

Neovim 0.5 Organize imports on save

How to implement organize imports on save? I am using this to create an organize import command _G.lsp_organize_imports = function() local params = { command = "_typescript.organizeImports", arguments =…
Aritra Dattagupta
  • 760
  • 1
  • 7
  • 22
1
2 3 4 5