summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua
new file mode 100644
index 0000000..6737736
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/roc_ls.lua
@@ -0,0 +1,21 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'roc_language_server' },
+ filetypes = { 'roc' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/roc-lang/roc/tree/main/crates/language_server#roc_language_server
+
+The built-in language server for the Roc programming language.
+[Installation](https://github.com/roc-lang/roc/tree/main/crates/language_server#installing)
+]],
+ default_config = {
+ root_dir = [[util.find_git_ancestor]],
+ },
+ },
+}