aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-03-18 22:46:05 -0400
committerGitHub <noreply@github.com>2022-03-18 19:46:05 -0700
commitdc3e1b25a1da2de5461c00b877f7eb2fdd906800 (patch)
tree99be3ace22bc69153990f653d266a6f31c0fed6f /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar.gz
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar.bz2
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar.lz
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar.xz
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.tar.zst
nvim-lspconfig-dc3e1b25a1da2de5461c00b877f7eb2fdd906800.zip
feat: add mm0 language support (#1787)
This is a theorem prover (https://github.com/digama0/mm0) in some sense related to the existing (supported) Lean theorem prover.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/mm0_ls.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/mm0_ls.lua b/lua/lspconfig/server_configurations/mm0_ls.lua
new file mode 100644
index 00000000..513bbeb9
--- /dev/null
+++ b/lua/lspconfig/server_configurations/mm0_ls.lua
@@ -0,0 +1,20 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'mm0-rs', 'server' },
+ root_dir = util.find_git_ancestor,
+ filetypes = { 'metamath-zero' },
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/digama0/mm0
+
+Language Server for the metamath-zero theorem prover.
+
+Requires [mm0-rs](https://github.com/digama0/mm0/tree/master/mm0-rs) to be installed
+and available on the `PATH`.
+ ]],
+ },
+}