summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua
new file mode 100644
index 0000000..2699e7e
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/starpls.lua
@@ -0,0 +1,16 @@
+local util = require 'lspconfig/util'
+
+return {
+ default_config = {
+ cmd = { 'starpls' },
+ filetypes = { 'bzl' },
+ root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel'),
+ },
+ docs = {
+ description = [[
+https://github.com/withered-magic/starpls
+
+`starpls` is an LSP implementation for Starlark. Installation instructions can be found in the project's README.
+]],
+ },
+}