pimeys / emacs-prisma-mode

A quick and dirty emacs major mode for Prisma schemas
GNU General Public License v2.0
53 stars 9 forks source link

LSP and auto-indent not working #13

Open indicozy opened 1 year ago

indicozy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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