non-Jedi / eglot-jl

Wrapper for using Julia LanguageServer.jl with emacs eglot
Creative Commons Zero v1.0 Universal
61 stars 11 forks source link

Add `julia-ts-mode` support #36

Closed chriselrod closed 1 year ago

chriselrod commented 1 year ago

Looks like the correct syntax according to https://github.com/joaotavora/eglot/blob/e501275e06952889056268dabe08ccd0dbaf23e5/eglot.el#L231-L232

chriselrod commented 1 year ago

This works for me. Here is the relevant part of my config if anyone wants to try it (but you'll want to remove the indent custom if you prefer 4 spaces).

(use-package julia-ts-mode
  :straight (:host github
           :repo "ronisbr/julia-ts-mode"
           :branch "main")
  :custom 
  (julia-ts-mode-indent-offset 2))

(use-package eglot-jl
  :straight (:host github
           :repo "chriselrod/eglot-jl"
           :branch "patch-1"))
non-Jedi commented 1 year ago

I've waffled on this since julia-ts-mode isn't a registered package anywhere, but ultimately this isn't hurting anything, so