emacs configuration? #150
-
First, this looks like a fantastic project, really impressive! Has anyone managed to make this work in Emacs? I have first tried to setup something in lsp-mode but couldn't figure out how to add a custom language server, so i switched to eglot (which is something i've been meaning to do for a while anyway), with the following configuration: (use-package eglot
:defer
:hook
(python-mode . eglot-ensure)
(markdown-mode . eglot-ensure)
:bind (:map
eglot-mode-map
("C-c e r" . eglot-rename)
("C-c e a" . eglot-code-actions)
("C-c e o" . eglot-code-action-organize-imports)
("C-c e d" . eldoc)
("C-c e f" . eglot-format)
("C-c e =" . eglot-format))
:config
(add-to-list 'eglot-server-programs
'(markdown-mode . ("harper-ls")))
:custom
(eglot-autoshutdown t) ;; default is to leave servers runing when last buffer exits
;; (eglot-events-buffer-size 0)
;; (eglot-stay-out-of '(yasnippet))
(eglot-extend-to-xref nil)) ;; cover files found through xref (M-.) i think it works in python mode: when i switch to a python buffer for the first time, it takes a while to load (a annoying but good sign) and eventually pops a buffer with but in markdown mode, the server doesn't seem to start at all. this is the diagnostic buffer in emacs: and in
I installed harper through the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I don't know anything about emacs, but it doesn't look like you're calling |
Beta Was this translation helpful? Give feedback.
-
@elijah-potter - here's the Helix configuration. It really couldn't be more straightforward:
|
Beta Was this translation helpful? Give feedback.
I don't know anything about emacs, but it doesn't look like you're calling
harper-ls
with the--stdio
flag. I got timeouts when I didn't do that in my editor (helix).