Skip to content

Working configuration for emacs and doom emacs #39

@mtha790

Description

@mtha790

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions