Questions tagged [lsp]

This tag is to be used for questions related to the Emacs implementations of the client-side of the Language Server Protocol. These implementations aim to provide an IDE-like experience, by providing optional integration with many popular Emacs packages.

This tag is to be used for questions relating to the Emacs implementation of a client that conforms to the Language Server Protocol (LSP) and aims to provide an IDE-like experience, by providing optional integration with many popular Emacs packages (e.g. company, flycheck, projectile, helm, ivy, etc.). It supports many languages.

94 questions
9
votes
1 answer

lsp project root

I just switched to using lsp for my C++ and Python IDE needs. However, I am running into a constant issue where Python and C++ files have the wrong root, as reported by (lsp-workspace-root). The root is considered to be the git root (I assume from…
Tohiko
  • 1,589
  • 1
  • 10
  • 22
7
votes
3 answers

How can I associate a schema with a json file using lsp-mode/lsp-json

If you read the documentation for lsp-mode-lsp-json here, this is the section that deals with setting schemas: Available configurations lsp-json-schemas Default: nil Associate schemas to JSON files in the current project I have no idea how to use…
Pieter Breed
  • 201
  • 1
  • 4
5
votes
2 answers

How to uninstall lsp servers

How do you uninstall lsp servers. I see the functions to update and install, but none to remove or uninstall. I am using spacemacs, but an answer for vanilla emacs still helps.
young_souvlaki
  • 526
  • 2
  • 13
5
votes
0 answers

How do I make lsp-mode ignore a node_modules folder + others?

I want to know how to make lsp-mode ignore a node_modules folder (along with say, folder asdf and temp). This is what I have: (setq lsp-file-watch-ignored (rx (or "node_modules" "asdf" "temp"))) but for some reason it is not working. This official…
eoyath
  • 51
  • 2
4
votes
2 answers

How to start lsp-mode connections lazily after desktop is restored?

I have configured lsp-mode as follows: (use-package lsp-mode :straight t :init (setq lsp-keymap-prefix "C-c l") :hook ((python-mode . lsp)) :commands lsp) I am also using desktop-save-mode to restore my editing state upon restart. When I…
3
votes
1 answer

How to make connection to arduino LSP server?

I came across this repo arduino-language-server. My question is how to make it connect it to my emacs? (Maybe more generally, how to connect to any other LSP-server?) Currently I've installed prerequisites, and can run it (as instructed on it's…
Garid
  • 545
  • 1
  • 13
3
votes
0 answers

How to use dap-mode with TypeScript?

https://github.com/emacs-lsp/dap-mode provides DAP debugging for various languages (along the same lines as LSP does for completion, formatting, etc). How can I use that to debug programs written in TypeScript (assuming that's possible currently)?
Croad Langshan
  • 3,192
  • 14
  • 42
3
votes
3 answers

How can I disable lsp-headerline?

I'm using centaur tabs, and when lsp-headerline enables my tabs hides. I want to disable that headerline using lsp-headerline-bradcrumb-mode in a hook (use-package lsp-mode :commands (lsp lsp-deferred) :init (setq lsp-keymap-prefix "C-c l") …
3
votes
0 answers

Company: backend company-capf error

I'm using emacs-lsp with company-capf. While editing an elisp file, it works fine. However, once I run eval-buffer, I get the following error when trying to use completion: Company: backend company-capf error "The connected server(s) does not…
twlscnds
  • 131
  • 5
2
votes
1 answer

How to run a test at point using lsp?

I'm using https://github.com/python-lsp/python-lsp-server https://github.com/emacs-lsp/lsp-mode https://emacs-lsp.github.io/lsp-mode/ https://microsoft.github.io/language-server-protocol/implementors/servers/ and following this…
Mittenchops
  • 289
  • 1
  • 8
2
votes
0 answers

Emacs and ASP.Net Razor Pages

I am trying to get .razor and .cshtml pages working in Emacs. My config is Doom Emacs with (csharp +lsp +dotnet). No issues with the C# code, that all works fine other than absurd refactoring suggestions coming form LSP which I have recently…
jgnovak-dev
  • 121
  • 3
2
votes
1 answer

Is it possible to suppress `LSP :: Connected to [pyls:N].` message on minibuffer?

When I open a Python file I keep seeing LSP :: Connected to [pyls:N] message in the minibuffer. How can I suppress it? Since I know I have enabled lsp, I don't want to see that message always whenever I open a new file. I have looked into …
alper
  • 1,238
  • 11
  • 30
2
votes
0 answers

`lsp` does not start on python-mode-hook

I am using lsp under Python.lsp does not start when a Python file is opened, I have to do M-x lsp for each file I open. Also when I switch from find-file to another file I have to do M-x lsp all over again. I have followed:…
alper
  • 1,238
  • 11
  • 30
2
votes
1 answer

How to configure lsp-cmake lsp server in vanilla emacs

I want to setup lsp-cmake lsp server in my vanilla emacs. I just installed lsp server using pip install cmake-language-server. I don't know how to configure in my emacs init.el to use the lsp server. The couldn't find any documentation as well for…
2
votes
1 answer

How to remove LSP ?

I'm pretty much emacs noob. I've been tinkering in spacemacs for around a month now and got it set up pretty much how I like it. But since I updated it, header line that appears when I open a project using projectile became extra tall: I've been…
1
2 3 4 5 6 7