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.
203 questions
1 vote
1 answer
39 views
Activating LSP actions on type information that isn't present in the source file
I work primarily in Rust where I don't have type information written in the file (the compiler infers the type information for me). I normally rely on the type inlay hints, and in the JetBrains IDEs ...
1 vote
1 answer
116 views
After migrating from require('lspconfig').setup{} to vim.lsp.config(), why do I still need to have the neovim/nvim-lspconfig plugin installed?
After getting the deprecation warning from the neovim/nvim-lspconfig plugin that the require('lspconfig').setup() function was being deprecated in favor of the vim.lsp.config() and vim.lsp.enable() ...
0 votes
0 answers
49 views
LSP Text Objects in Vim
How to obtain language-independent text objects by LSP (in Vim, not Neovim) for methods, classes, etc?
0 votes
2 answers
1k views
How to properly migrate from deprecated lspconfig.setup() to vim.lsp.config()?
I use lazy.nvim as manager. Current Working Setup (with deprecation warning) return { "neovim/nvim-lspconfig", dependencies = { "saghen/blink.cmp" }, event = { "...
0 votes
0 answers
23 views
How to remove carriage return at EOL from snippets provided by LSP for dart?
I am using Windows 11 Pro with Neovim v0.11.3, with the distro called Lazyvim. I setup dartls language server using the code vim.lsp.enable("dartls") Which would provide with me the ...
0 votes
1 answer
59 views
How can I know who provided the Diagnostics information, and how can I configure ignore within the project?
I am using nvim-lspconfig in lazyvim, but I can only see a small amount of information, and I still cannot eliminate Diagnostics after configuring .golangci.json. To reproduct: mv ~/.config/nvim ~/....
0 votes
1 answer
57 views
LSP not showing documentation
Why does my pyright lsp not show any info/documentation when i start typing or hover over it with K for example str() but in vscode it does? this is my lsp: https://codefile.io/f/l3RDycUx95
0 votes
1 answer
308 views
Best way to set up and learn LSP for Neovim
What’s the best way to properly set up and learn to use LSP for any language of choice? I’ve been stuck while working with frontend (JS, JSX, TSX). Main things I’m looking to figure out are: Auto ...
0 votes
0 answers
33 views
How can I format the LSP completion output?
I have my own Neovim configuration written in Lua. I am using nvim-lsp as a source for nvim-cmp to get completion along with the clangd language server for C++. I do not like the formatting that it ...
0 votes
1 answer
275 views
ltex and ltex_plus language servers attatch, but provide no diagnostics for filetype tex with Neovim 0.11 and native LSP
I have been updating my configuration to use the native LSP setup in Neovim 0.11 but have ran into an issue with the LTeX/LTeX+ language servers, which are used for spellchecking. Both are essentially ...
0 votes
0 answers
304 views
VTSLS language server looks attached at output of :LspInfo, but it does not function except basic diagnostics
Here is :LspInfo output: - vtsls (id: 5) - Version: 0.2.9 - Root directory: ~ - Command: { "vtsls", "--stdio" } - Settings: { vtsls = { tsserver = { ...
0 votes
1 answer
480 views
Double load of lua_ls when using nvim-lspconfig
I am trying to debug a problem I have with the lsp configuration of nvim. When I open a file in nvim, the lsp lua_ls loads fine and works correctly. If I open a new file, or move to the next file, ...
0 votes
0 answers
95 views
Using Intelephense with Laravel in Neovim, for Laravel modules
So I have a quite specific problem. I've been able to configure intelephense, to work with Laravel and recognize it's magic methods, classes etc. But when it comes to modular Laravel folder structure, ...
0 votes
0 answers
115 views
Single LSP (pyright) for my code and standard library
So, I try to transition to neovim (for 0.11) I have added such config (tried to minimize where it's clear how to do) init.lua: require("riad.lazy") vim.api.nvim_create_autocmd("...
0 votes
1 answer
271 views
Missing import path in autocompletion menu in blink.cmp
Expected Behavior (Screenshot from VSCodium as Example): Or Current Behavior (Neovim v0.11+): Configuration I'm using blink.cmp for autocompletion: { "saghen/blink.cmp", dependencies = {...