BuddhiLW
BuddhiLW

Reputation: 627

Emacs modes to deal with .prisma files

My schema.prisma file (https://www.prisma.io/docs/concepts/components/prisma-schema) is on Fundamental mode.

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

I would like to use some programming support in this file also. It's similar to JSON files, but not quite. Does anyone have a solution?

Upvotes: 2

Views: 215

Answers (2)

John Hamelink
John Hamelink

Reputation: 1088

I've found that https://github.com/davidarenas/prisma-mode is a better option these days - it doesn't require lsp-mode, and has support for formatting with prisma-fmt.

Upvotes: 0

Tasin Ishmam
Tasin Ishmam

Reputation: 7278

emacs-prisma-mode provides a emacs mode for Prisma schemas. I found it in the editor setup page in the Prisma docs.

This should be what you're looking for.

Upvotes: 4

Related Questions