Questions tagged [eglot]

36 questions
3
votes
1 answer

Eglot and Svelte

As the title suggests I have been struggling for a while now to get eglot to play nice with svelte, specifically I want to use svelte with typescript. Svelte provides a language server, but I can't get it to start. Any help would be appreciated.
joe
  • 41
  • 2
3
votes
2 answers

How to disable eldoc doc minibuffer?

While using eldoc, it constantly updates the minibuffer with the symbol on point. I like it, but would like the displayed lines to be lesser, as it covers a lot of my window. I tried putting the following in my ~/.emacs file: (setq …
Typedragon33
  • 171
  • 5
1
vote
1 answer

How to stop eglot from spamming echo area in emacs 27

Problem: Eglot constantly floods the echo area with messages like: [eglot] vid_sampler 5743c883-2a9f-43af-aec8-b0db83a32e77: | lint: mccabe. (Here, vid_sampler is the name of the project that I'm working on.) The problem is not only this specific…
1
vote
0 answers

eglot + rust-analyzer: Failed to discover workspace

I've been having a really great experience w/ eglot for C++ development. I'm finding it a lot easier to use than lsp-mode (at least for C++). However, I'm running into an issue w/ both eglot (and lsp-mode, actually). M-x eglot when opening a rust…
1
vote
0 answers

Eglot/pyright on Windows is sending malformed paths to the server

I'm getting all kinds of strange behavior trying to run Eglot with Pyright on Windows with Emacs 29.0.60 ((build 1, x86_64-w64-mingw32) of 2023-03-10). The *Messages* buffer shows lots of attempts to connect, quickly followed by timeouts and server…
Rodney Price
  • 496
  • 3
  • 10
1
vote
1 answer

Eglot spams the minibuffer in Java mode

I am essentially having this issue but for the java-mode. Eglot shows too many messages in the java files. How can I fix this? I only wanna see the documentation and error messages in the minibuffer.
scribe
  • 930
  • 4
  • 15
1
vote
2 answers

How to enable inlay hint in Eglot + Clangd

Using Emacs 30, eglot is built in emacs and now it supports inlay hints capability of LSPs. Now I want to use clangd with eglot with inlay hints enabled, but it seems that it does not work out of the box and requires some configurations. These are…
Nixmd
  • 131
  • 3
1
vote
1 answer

Can I use a local language server for remote files?

Is it possible to have eglot use a language server running on my local machine to work on files on the remote machine? I'm trying to edit TypeScript files on a remote server. I can visit the file just fine via TRAMP, and I can run commands like…
Evan Davis
  • 148
  • 6
1
vote
0 answers

eglot for C#, find references, implementation, declaration

As I've switched to eglot now, what is the proper way to find references, implementations and declarations? I tried xref-find-references, but it only returns "user-error: No references found for: LSP identifier at point", so not really sure what…
Jason Hunter
  • 519
  • 2
  • 9
1
vote
1 answer

Can't get auto-imports working with Eglot

I'm trying out eglot with gopls and having trouble getting auto-imports working. My configuration looks like below; (which I gathered from github-issues of eglot 1) (add-hook 'go-mode-hook #'eglot-ensure) (defun own/eglot-organize-imports () …
Muhammet Can
  • 111
  • 3
1
vote
1 answer

How do you tell eglot and clangd about the compilation database (compile_commands.json)?

I'm trying to set up Emacs for C++ development, with IDE-like features. I installed eglot and have got it working, somewhat. Flymake is drawing red error markers and reporting errors on #include ... lines, but everything compiles fine. I wonder if…
Rob N
  • 547
  • 2
  • 12
1
vote
2 answers

How to disable on-the-fly diagnostics in eglot?

How can I disable any sort of on-the-fly diagnostics in eglot? This does not seem to be possible by customizing eglot-ignored-server-capabilites. Disabling flymake-mode using a major-mode-hook also does not work.
Florian
  • 241
  • 1
  • 11
0
votes
0 answers

Ruby Eglot Tree-Sitter Configuration

Has anyone managed an eglot and tree-sitter configuration for ruby that has a reasonably full feature set. I have both activated, but here are some things that don't work: xref jumping code folding documentation I have tried both ruby-lsp and…
Daniel Doherty
  • 418
  • 4
  • 12
0
votes
0 answers

eglot + gopls (golang) , make 'find definition' work under /usr/local/src/go

Eglot + gopls works fine. I have the following in my init.el, and it works for installed packages (mod files) (require 'project) (defun project-find-go-module (dir) (when-let ((root (locate-dominating-file dir "go.mod"))) (cons 'go-module…
eugene
  • 481
  • 1
  • 5
  • 11
0
votes
0 answers

eglot with pyright server random hidden text in buffer makes pyright produces errors

I'm using eglot with pyright language server, whenever I write anything in the buffer that produces an error (specifically, variable not defined error) and then delete it, pyright still complains about it, here is an example: in this picture it…
ntriisii
  • 1
  • 4
1
2 3