diff options
| author | Keith Smiley <keithbsmiley@gmail.com> | 2024-04-11 02:04:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 14:04:13 +0800 |
| commit | ec122b1d4af7d838b327683348118942b2d8e1bb (patch) | |
| tree | aeba0ba82e4ddf917ab98829a4cdeeb1fcac6386 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar.gz nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar.bz2 nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar.lz nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar.xz nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.tar.zst nvim-lspconfig-ec122b1d4af7d838b327683348118942b2d8e1bb.zip | |
feat: add starpls support (#3102)
This is a LSP for bazel https://github.com/withered-magic/starpls
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/starpls.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/starpls.lua b/lua/lspconfig/server_configurations/starpls.lua new file mode 100644 index 00000000..2699e7ed --- /dev/null +++ b/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. +]], + }, +} |
