diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-05-23 14:31:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-23 14:31:00 -0700 |
| commit | e11d8536a8b63b2d062945173169ce2d419f4b95 (patch) | |
| tree | 389b280282b652c52d17f5f2bfa45ffbd518fd30 /lua | |
| parent | Merge pull request #931 from lcrockett/master (diff) | |
| parent | parent d23816b7b00028375e53dba2aa30f2b56573cf54 (diff) | |
| download | nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar.gz nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar.bz2 nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar.lz nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar.xz nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.tar.zst nvim-lspconfig-e11d8536a8b63b2d062945173169ce2d419f4b95.zip | |
Merge pull request #919 from nathanaelcunningham/prismals
add config for prisma language server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/prismals.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/lspconfig/prismals.lua b/lua/lspconfig/prismals.lua new file mode 100644 index 00000000..495b2b8a --- /dev/null +++ b/lua/lspconfig/prismals.lua @@ -0,0 +1,31 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local server_name = "prismals" +local bin_name = "prisma-language-server" +if vim.fn.has('win32') == 1 then + bin_name = bin_name..".cmd" +end + +configs[server_name] = { + 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")]]; + }; + }; +} |
