diff options
| author | LW <git@llllvvuu.dev> | 2023-09-11 17:46:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-12 08:46:20 +0800 |
| commit | 339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2 (patch) | |
| tree | 51e6a6ce3a00cb960c5a626582b3a2aa32194862 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar.gz nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar.bz2 nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar.lz nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar.xz nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.tar.zst nvim-lspconfig-339ce2dad04d084cd6da62a0dc5ffb9d113d9bc2.zip | |
feat: add `mojo` language server (#2804)
fixes: #2799
Diffstat (limited to '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]], + }, + }, +} |
