[WIP] hare-ls is language server for Hare
hare-ls
is a language server implementation in Go for Hare. It is
a fork of https://git.sr.ht/~jfreymuth/hare-ls with bug fixes.
Debug
On panic the server should log traces to stderr. Also it has debug
mode with logging of all GRPC requests and responses (very verbose!):
hare-ls -debug=true
IDE integrations
Follow instructions for your IDE. Examples
GNU/Emacs
It assumed you have installed lsp-mode
. Hare support not included to
lsp-mode
you should add it manually:
(add-to-list 'lsp-language-id-configuration '(hare-mode . "hare"))
(lsp-register-client (make-lsp-client
:new-connection (lsp-stdio-connection "hare-ls")
;; uncoment for debug mode and comment out line above ^^^
;; :new-connection (lsp-stdio-connection '("hare-ls" "-debug=true"))
:activation-fn (lsp-activate-on "hare")
:server-id 'hare-ls))
Also setup hare-mode
:
(use-package hare-mode
:straight (:host sourcehut :type git :repo "nicferrier/hare-mode")
Status
This is a work in progress. Patches are welcome.
Features:
- syntax error reporting
- completions for declarations
- hover
- go to definition
Not sure about further plans yet. I need working language server with
minimal set of features until Hare got fully working native
implementation. Anyway report bugs I'll try to fix them.