diff options
feat: add `mojo` language server (#2804)
fixes: #2799
Diffstat (limited to 'lua/lspconfig/server_configurations/mojo.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/mojo.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/mojo.lua b/lua/lspconfig/server_configurations/mojo.lua new file mode 100644 index 00000000..9092ba65 --- /dev/null +++ b/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]], + }, + }, +} |
