aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/pact_ls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/pact_ls.lua b/lua/lspconfig/server_configurations/pact_ls.lua
new file mode 100644
index 00000000..ad3745b7
--- /dev/null
+++ b/lua/lspconfig/server_configurations/pact_ls.lua
@@ -0,0 +1,24 @@
+local util = require 'lspconfig.util'
+
+local bin_name = 'pact-lsp'
+local cmd = { bin_name }
+
+if vim.fn.has 'win32' == 1 then
+ cmd = { 'cmd.exe', '/C', bin_name }
+end
+
+return {
+ default_config = {
+ cmd = cmd,
+ filetypes = { 'pact' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/kadena-io/pact-lsp
+
+The Pact language server
+ ]],
+ },
+}