summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua
new file mode 100644
index 0000000..9092ba6
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/mojo.lua
@@ -0,0 +1,22 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'mojo-lsp-server' },
+ filetypes = { 'mojo' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/modularml/mojo
+
+`mojo-lsp-server` can be installed [via Modular](https://developer.modular.com/download)
+
+Mojo is a new programming language that bridges the gap between research and production by combining Python syntax and ecosystem with systems programming and metaprogramming features.
+]],
+ default_config = {
+ root_dir = [[util.find_git_ancestor]],
+ },
+ },
+}