aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/prismals.lua
blob: 96c12a869fce5677720cacf73850c8c08a10c551 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local util = require 'lspconfig.util'

local bin_name = 'prisma-language-server'
if vim.fn.has 'win32' == 1 then
  bin_name = bin_name .. '.cmd'
end

return {
  default_config = {
    cmd = { bin_name, '--stdio' },
    filetypes = { 'prisma' },
    settings = {
      prisma = {
        prismaFmtBinPath = '',
      },
    },
    root_dir = util.root_pattern('.git', 'package.json'),
  },
  docs = {
    description = [[
npm install -g @prisma/language-server

'prismals, a language server for the prisma javascript and typescript orm'
]],
    default_config = {
      root_dir = [[root_pattern(".git", "package.json")]],
    },
  },
}