I was wondering if it might be a good idea for flycheck-posframe-mode to not enable itself when lsp-ui-mode is active in a buffer, because lsp-ui-mode shows the same info.
I enable flycheck-posframe-mode in prog-mode-hook, so it's available in all programming modes, but I prefer to disable it when using LSP. Disabling it in lsp-ui-mode-hook doesn't work because (I assume) that hook is called before prog-mode-hook.
I defined my own function jk-maybe-flycheck-posframe-mode which enables flycheck-posframe-mode unless lsp-ui-mode is active, but perhaps that's something flycheck-posframe-mode should do itself?
I was wondering if it might be a good idea for
flycheck-posframe-mode
to not enable itself whenlsp-ui-mode
is active in a buffer, becauselsp-ui-mode
shows the same info.I enable
flycheck-posframe-mode
inprog-mode-hook
, so it's available in all programming modes, but I prefer to disable it when using LSP. Disabling it inlsp-ui-mode-hook
doesn't work because (I assume) that hook is called beforeprog-mode-hook
.I defined my own function
jk-maybe-flycheck-posframe-mode
which enablesflycheck-posframe-mode
unlesslsp-ui-mode
is active, but perhaps that's somethingflycheck-posframe-mode
should do itself?