aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/snyk_ls.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/snyk_ls.lua b/lua/lspconfig/server_configurations/snyk_ls.lua
new file mode 100644
index 00000000..7bb5d509
--- /dev/null
+++ b/lua/lspconfig/server_configurations/snyk_ls.lua
@@ -0,0 +1,22 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'snyk-ls' },
+ root_dir = util.root_pattern '.git',
+ single_file_support = true,
+ settings = {},
+ init_options = {},
+ },
+ docs = {
+ description = [[
+https://github.com/snyk/snyk-ls
+
+LSP for Snyk Open Source, Snyk Infrastructure as Code, and Snyk Code.
+]],
+ default_config = {
+ root_dir = [[root_pattern(".git")]],
+ init_options = 'Configuration from https://github.com/snyk/snyk-ls#configuration-1',
+ },
+ },
+}