Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working configuration for emacs and doom emacs #39

Open
mtha790 opened this issue Jan 18, 2025 · 0 comments
Open

Working configuration for emacs and doom emacs #39

mtha790 opened this issue Jan 18, 2025 · 0 comments

Comments

@mtha790
Copy link

mtha790 commented Jan 18, 2025

Hello,

janet-lsp must be in the path otherwise "janet-lsp" represent the path to janet-lsp binary.
janet-mode must be installed.
Since emacs version >=29, eglot and use-package are built-in. You can add this to your init.el

(use-package eglot
  :config
  (add-to-list 'eglot-server-programs '(janet-mode . ("janet-lsp")))
  (add-hook 'janet-mode-hook 'eglot-ensure))

On doom emacs
(lsp +eglot) enabled, add this to you config.el

(use-package! eglot
  :config
  (add-to-list 'eglot-server-programs '(janet-mode . ("janet-lsp")))
  (add-hook 'janet-mode-hook 'eglot-ensure))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant