Files
creature/lisp/init-prisma.el
T
zedhugh b5d9ce18a7 use "creature/pkg-active" manage packages manually
- replace "add-pkg-in-pkg-dir" (recursive load-path scanning) with a
  central "creature/pkgs" registry that handles load path, autoloads,
  info dirs and dependencies
- adapt all init-*.el files to the new activation function
- add a top-level Makefile to byte-compile site-lisp packages
- remove unused "emacs-kv" and "emacs-db" submodules
2026-09-14 15:02:43 +08:00

28 lines
811 B
EmacsLisp

;; -*- coding: utf-8; lexical-binding: t; -*-
(require 'init-package)
(creature/pkg-active 'prisma-ts-mode)
(autoload 'prisma-ts-mode "prisma-ts-mode" "" t)
;; remember run `treesit-install-language-grammar' command to install `prisma'
(add-to-list
'treesit-language-source-alist
(list
'prisma
(file-truename
(file-name-concat
(file-name-directory (or load-file-name buffer-file-name))
"../tree-sitter-langs/tree-sitter-prisma"))))
(add-to-list 'auto-mode-alist '("\\.prisma\\'" . prisma-ts-mode))
;; language server is `@prisma/language-server', install it by npm/pnpm/yarn.
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(prisma-ts-mode . ("prisma-language-server" "--stdio"))))
(add-hook 'prisma-ts-mode-hook #'eglot-ensure)
(provide 'init-prisma)