themkat / emacs-m68k

Motorola 68k Assembly environment for Emacs. Focusing on Amiga in the beginning with lsp-server and debugger. Might extend to support other platforms based upon interest
7 stars 0 forks source link

Support eglot as well as lsp-mode #3

Open mdbergmann opened 1 month ago

mdbergmann commented 1 month ago

Hello. Great project. Just wondering, since Eglot is basically standard Emacs LSP client, and I use it a lot, can Eglot also be used?

themkat commented 1 month ago

At the moment, there are a few places that depend on lsp-mode. AFAIK, that can easily be fixed! 🙂 Renaming this task to "remove hard dependency on lsp-mode". If you have any suggestions on how to easily support both, I'm all ears 🙂 atm, my idea is to let the user require the correct one, i.e, (require 'lsp-m68k) if using lsp-mode, or (require 'm68k-eglot) if using eglot. That way seems the simplest implementation-wise without any error prone toggles.

The reason for me using lsp-mode as a default is that I didn't enjoy eglot at all when I tried it. I enjoy the way lsp-mode does things, but I'm probably biased due to contributing to it.