Trying to subclass eglot-lsp-server
#1423
-
Hi! I actually had been trying to implement #1420 myself by doing what the documentation had suggested, which is to alter the ((c-mode c-ts-mode c++-mode c++-ts-mode objc-mode)
. ,(eglot-alternatives
'("clangd" "ccls"))) to this: ((c-mode c-ts-mode c++-mode c++-ts-mode objc-mode)
. ('eglot-lsp-server . ("clangd")))) Then, I would later replace
However I get the error
Any suggestions on what I am doing wrong here? Am I misunderstanding the docs? Anyways, thanks! this package rocks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This would seem to be a bug. Either in the doc or in the implementation. I have to check. |
Beta Was this translation helpful? Give feedback.
-
You have to brush up on your Lisp quoting rules (and I must play closer attention):
Is how it should be. This of course is the same as
But what you had was wrong (for Eglot's purposes) because
is the same as this (I think):
Which is wrong: has too much quoting. |
Beta Was this translation helpful? Give feedback.
You have to brush up on your Lisp quoting rules (and I must play closer attention):
Is how it should be. This of course is the same as
But what you had was wrong (for Eglot's purposes) because
'
means the same as applying the formquote
. So this: