From 8ec68f74bae74abddcc2cbcc77db7fef2b2a95ab Mon Sep 17 00:00:00 2001 From: Felix Zeller Date: Thu, 29 Feb 2024 01:19:21 -0500 Subject: feat: add markdown-oxide lsp (#3030) * feat: add markdown-oxide lsp * fix: style * fix: modify root_dir to include git repos * fix: fix undefined lspconfig error * fix: style * fix: use util Co-authored-by: Raphael * fix: use find git ancestor Co-authored-by: Raphael * Update markdown_oxide.lua Co-authored-by: Raphael --------- Co-authored-by: Raphael --- .../server_configurations/markdown_oxide.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/lspconfig/server_configurations/markdown_oxide.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/markdown_oxide.lua b/lua/lspconfig/server_configurations/markdown_oxide.lua new file mode 100644 index 00000000..d3fb74f3 --- /dev/null +++ b/lua/lspconfig/server_configurations/markdown_oxide.lua @@ -0,0 +1,19 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + root_dir = util.find_git_ancestor, + single_file_support = true, + filetypes = { 'markdown' }, + cmd = { 'markdown-oxide' }, + }, + docs = { + description = [[ +https://github.com/Feel-ix-343/markdown-oxide + +Markdown language server with advanced linking support made to be completely compatible with Obsidian; An Obsidian Language Server + +Check the readme to see how to get nvim-cmp properly working. + ]], + }, +} -- cgit v1.2.3-70-g09d2