aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-05-01 21:27:29 +0800
committerGitHub <noreply@github.com>2023-05-01 21:27:29 +0800
commit48cca92db7420bca1fc01e2def694f5b4922230e (patch)
treeb92fa21c10074c4b1e0dde03568b15689c165326 /lua
parentfix(bufls): fix bufls command option (#2578) (diff)
downloadnvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar.gz
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar.bz2
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar.lz
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar.xz
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.tar.zst
nvim-lspconfig-48cca92db7420bca1fc01e2def694f5b4922230e.zip
feat: add pact lsp support (#2580)
* feat: add pact lsp support --------- Co-authored-by: glepnir <glepnir@neovim.pro>
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
+ ]],
+ },
+}