aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/marksman.lua29
-rw-r--r--lua/lspconfig/server_configurations/zeta_note.lua22
2 files changed, 29 insertions, 22 deletions
diff --git a/lua/lspconfig/server_configurations/marksman.lua b/lua/lspconfig/server_configurations/marksman.lua
new file mode 100644
index 00000000..3ce67fcc
--- /dev/null
+++ b/lua/lspconfig/server_configurations/marksman.lua
@@ -0,0 +1,29 @@
+local util = require 'lspconfig.util'
+
+local bin_name = 'marksman'
+local cmd = { bin_name, 'server' }
+
+return {
+ default_config = {
+ cmd = cmd,
+ filetypes = { 'markdown' },
+ root_dir = function(fname)
+ local root_files = { '.marksman.toml' }
+ return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
+ end,
+ },
+ docs = {
+ description = [[
+https://github.com/artempyanykh/marksman
+
+Marksman is a Markdown LSP server providing completion, cross-references, diagnostics, and more.
+
+Marksman works on MacOS, Linux, and Windows and is distributed as a self-contained binary for each OS.
+
+Pre-built binaries can be downloaded from https://github.com/artempyanykh/marksman/releases
+]],
+ default_config = {
+ root_dir = [[root_pattern(".git", ".marksman.toml")]],
+ },
+ },
+}
diff --git a/lua/lspconfig/server_configurations/zeta_note.lua b/lua/lspconfig/server_configurations/zeta_note.lua
deleted file mode 100644
index 0095261b..00000000
--- a/lua/lspconfig/server_configurations/zeta_note.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'zeta-note' },
- filetypes = { 'markdown' },
- root_dir = util.root_pattern '.zeta.toml',
- },
- docs = {
- description = [[
-https://github.com/artempyanykh/zeta-note
-
-Markdown LSP server for easy note-taking with cross-references and diagnostics.
-
-Binaries can be downloaded from https://github.com/artempyanykh/zeta-note/releases
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".zeta.toml")]],
- },
- },
-}