1

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

2 Answers2

3

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)))
nerding_it
  • 171
  • 6
1

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

albert200000
  • 153
  • 4
  • 4
    Welcome to Emacs.SE! Could you post the actual code to make this a complete answer? – Dan Dec 24 '20 at 16:21