A quick and dirty emacs major mode for Prisma schemas.
P.S. I have quite limited time for this, so I'd be happy for good pull requests if needing features!
- Syntax hilighting
- Autoindent
- LSP
I'm using doom-emacs, so to have the mode available I clone the repo to ~/.doom.d/emacs-prisma-mode
, then in ~/.doom.d/config.el
I can set:
(load! "emacs-prisma-mode/prisma-mode")
Or, you can also install as package at ~/.doom.d/packages.el
(package! prisma-mode :recipe (:host github :repo "pimeys/emacs-prisma-mode" :branch "main"))
Note: This package requires lsp-mode
(package! lsp-mode)