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

LSP and auto-indent not working #13

Open
indicozy opened this issue Nov 23, 2022 · 2 comments
Open

LSP and auto-indent not working #13

indicozy opened this issue Nov 23, 2022 · 2 comments

Comments

@indicozy
Copy link

indicozy commented Nov 23, 2022

Hi there!
I'm new with emacs, so I may get it wrong. LSP is not working when I update and save file. Though, LSP is working with javascript and typescript. Could you please clarify if I'm doing something wrong:

;; package.el
(package! prisma-mode :recipe (:host github :repo "pimeys/emacs-prisma-mode" :branch "main"))
;; init.el
(doom! :input
     ;; ...
      lsp
     ;; ...
)
@pimeys
Copy link
Owner

pimeys commented Nov 26, 2022

For now the LSP functionality only works with lsp-mode. I'd love to get a PR for us to support eglot too, so if doom uses eglot instead of lsp-mode, it will not work correctly.

Otherwise you need to add this:

(use-package lsp-mode
  :config

  (add-hook 'prisma-mode-hook #'lsp-deferred))

@eduardoheleno
Copy link

I can't use the use-package function, it says that is a void definition.

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

3 participants