3

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.

2 Answers 2

5

Disabling flymake-mode on eglot-managed-mode-hook should work.

1
  • 6
    Welcome to Emacs.SE! Could you post the actual code to make this a complete answer? Commented Dec 24, 2020 at 16:21
6

I ended with the same situation, Where I wanted to use flymake directly with eslit wihout eglot. This code worked for me

 (add-hook 'eglot-managed-mode-hook (lambda () (remove-hook 'flymake-diagnostic-functions 'eglot-flymake-backend) (flymake-eslint-enable))) 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.