Questions tagged [lsp]

Language Server Protocol is used between an editor or IDE (such as Vim or NeoVim) and a language server (such as clangd or many others) that provides language features like auto complete, go to definition, find all references etc.

Filter by
Sorted by
Tagged with
1
vote
0answers
26 views

Neovim nvim-jdtls Error Client 1 quit with exit code 13 and signal 0

i tried setting up my neovim with the nvim-jdtls plugin (https://github.com/mfussenegger/nvim-jdtls) But I always get a Client 1 quit with exit code 13 and signal 0 Error Message. I followed the ...
0
votes
1answer
43 views

Neovim LSP with Go

I am trying to set up my Neovim (nightly - latest) with Go (the programming language). However, it doesn't seem to be working, most likely because I'm missing something. I'm not sure what though. ...
0
votes
0answers
57 views

Completion sources not recognized by nvim-cmp

I recently transitioned from LanguageClient-neovim to built-in lsp support and completion using omnifunc. However I was enticed by the promise of auto-imports and completion snippets including ...
0
votes
1answer
27 views

rust-analyzer not working in NeoVim on Windows 10

I'm trying to get rust-analyzer working in Neovim, but with no luck so far. I've downloaded the rust-analyzer binary (rust-analyzer-x86_64-pc-windows-msvc.gz) from the rust-analyzer releases page and ...
0
votes
0answers
45 views

neovim lsp client jump to implementation in another project

Nvim info NVIM v0.5.1 Build type: Release LuaJIT 2.1.0-beta3 Also using nvim-lspconfig, and tsserver Filesystem dir structure |--home |--project-A |--src |-- |--/* ...
0
votes
1answer
27 views

Make LanguageServer aware of requirements without activating virtual environment (Python)

I have a typical python project structure: ├── requirements.txt └── src.py where requirements.txt is holding the requirements of my project, and src.py has my code. In my minimal example, they look ...
-2
votes
1answer
187 views

Error while configuring nvim cmp

I am trying to configure nvim-cmp (https://github.com/hrsh7th/nvim-cmp), by adding the following lines to ~/.config/nvim/lua/lsp-config.lua. After this, when I start nvim, I get an error as shown in ...
0
votes
1answer
56 views

Typescript add missing import on cursor?

I'm working on a TypeScript-React project using neovim, because I love it. I want a feature: when my cursor is on a name that has not been imported, I can press some key-combination to choose which ...
0
votes
0answers
30 views

How do I enable completion prompts in Neovim + LSP?

I am using Neovim 0.6.0 nightly (I also have the nvim-lspconfig and hrsh7th/nvim-cmp plugins installed) and have a few different LSP servers which do seem to be working (I have tested them by simply ...
0
votes
1answer
29 views

How to setup vim to use clangd on a Visual C++ project (msbuild, cl.exe)

How do you setup clangd as an lsp when using a project not built with clang? It's giving really basic lint errors like unknown type name 'uint8_t' because it's failing to process my precompiled ...
0
votes
1answer
222 views

Configuring coc.nvim coc-solargraph with standardrb for RSpec files

I am trying to configure coc.nvim for my vim 8.2. I mapped my formatting to leader-d with: nnoremap <Leader>d :call CocAction('format') <CR> which works fine for ruby filetype. However, ...
0
votes
0answers
149 views

neovim lsp icons are not appearing in color

I am configuring native lsp of neovim. I have installed neovim-lsp and neovim-lspconfig plugins using vimplug. I have also installed hrsh7th/nvim-compe for auto completion suggestions. Functionally ...
0
votes
1answer
85 views

How to set the diagnostic level for neovim lsp

By default the lsp has set the diagnosticLevel to Hints, i wanna set this to information level. I tried looking at various places but couldn't find much. I am using LunarVim config if that gives extra ...
4
votes
2answers
415 views

Is there a way to write a file and skip the autocmd on write?

My .vimrc has, autocmd FileType rust autocmd BufWritePre <buffer> call LanguageClient#textDocument_formatting_sync() This works great, unless my LanguageClient crashes. Then I can't write the ...
1
vote
0answers
366 views

NeoVim latest version autocompletion opens and closes immediately

I am new to Vim and NeoVim, I setup the latest NeoVim on MAC using brew install nvim --head. I setup the latest verison for the lsp suppport. I installed the CoC plugin and the CoC-go plugin for auto-...
0
votes
1answer
206 views

What is the term of feature used by on-the-fly checkers?

Here are two screenshots, with vim and neovim, both with configured language server protocol and showing same file: Neovim: Vim: I want to configure neovim to have same style as vim -- I do not like ...
1
vote
0answers
147 views

Retrieving declaration not supported for filetype

I am currently using vim-lsp for bash. As in https://github.com/bash-lsp/bash-language-server#vim I have added in my ~/.vimrc the followings : if executable('bash-language-server') au User lsp_setup ...
1
vote
1answer
296 views

Vim LSP: change keybindings only if there is a LS attached to buffer

I do maintain there mappings in mv $vimrc: augroup LSP | au! autocmd FileType go,json,yaml nnoremap <silent> <buffer> <c-]> <cmd>lua vim.lsp.buf.declaration()<CR> autocmd ...
2
votes
1answer
456 views

View full (non-truncated) diagnostic error

I am using coc.nvim to get "intellisense" on my project. The diagnostic warnings & errors are great. However, sometimes those error messages are quite long, but the coc diagnostics ...
7
votes
0answers
163 views

How does NeoVim's native LSP client compare with plug-ins that implement that protocol?

NeoVim v0.5 will include a native LSP (Language Server Protocol) implementation. See Greg Hurrell (wincent)'s Screencast #87: Neovim's built-in LSP client covering it. How does it compare with ...