aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/ballerina.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/ballerina.lua b/lua/lspconfig/server_configurations/ballerina.lua
new file mode 100644
index 00000000..fb6ec88e
--- /dev/null
+++ b/lua/lspconfig/server_configurations/ballerina.lua
@@ -0,0 +1,17 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'bal', 'start-language-server' },
+ filetypes = { 'ballerina' },
+ root_dir = util.root_pattern 'Ballerina.toml',
+ },
+ docs = {
+ description = [[
+Ballerina language server
+
+The Ballerina language's CLI tool comes with its own language server implementation.
+The `bal` command line tool must be installed and available in your system's PATH.
+]],
+ },
+}