From 8c951a591af5c44be8dbedf78436617e915f12e1 Mon Sep 17 00:00:00 2001 From: Artem Pyanykh Date: Mon, 6 Jun 2022 12:52:29 +0100 Subject: feat: add Marksman markdown LSP, retire zeta-note (#1946) Zeta-Note was retired. Marksman is a successor to the original project, but now instead of being a "**Zettelkasten LSP** that happened to be in Markdown" it's a "**Markdown LSP** that *also* supports Zettelkasten-like note-taking'. --- lua/lspconfig/server_configurations/marksman.lua | 29 +++++++++++++++++++++++ lua/lspconfig/server_configurations/zeta_note.lua | 22 ----------------- 2 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 lua/lspconfig/server_configurations/marksman.lua delete mode 100644 lua/lspconfig/server_configurations/zeta_note.lua (limited to 'lua') 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")]], - }, - }, -} -- cgit v1.2.3-70-g09d2