aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorFelix Zeller <felixazeller@gmail.com>2024-04-23 04:51:08 -0500
committerGitHub <noreply@github.com>2024-04-23 17:51:08 +0800
commitf02bd54bf7be450efdbd045f8aab9264b449f222 (patch)
treec90f10b922fba43dfd746075ffeccba63ed270c3 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar.gz
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar.bz2
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar.lz
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar.xz
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.tar.zst
nvim-lspconfig-f02bd54bf7be450efdbd045f8aab9264b449f222.zip
fix(markdown_oxide): update root_dir and description (#3114)
* fix: root_dir for lspconfig * fix: markdown oxide description * fix: remove unused util * docs: update server_configurations.md skip-checks: true --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/markdown_oxide.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/lua/lspconfig/server_configurations/markdown_oxide.lua b/lua/lspconfig/server_configurations/markdown_oxide.lua
index d3fb74f3..1ce2822a 100644
--- a/lua/lspconfig/server_configurations/markdown_oxide.lua
+++ b/lua/lspconfig/server_configurations/markdown_oxide.lua
@@ -1,9 +1,8 @@
-local util = require 'lspconfig.util'
-
return {
default_config = {
- root_dir = util.find_git_ancestor,
- single_file_support = true,
+ root_dir = function(fname, _)
+ return require("lspconfig").util.root_pattern('.git', '.obsidian', '.moxide.toml')(fname) or vim.uv.cwd()
+ end,
filetypes = { 'markdown' },
cmd = { 'markdown-oxide' },
},
@@ -11,9 +10,12 @@ return {
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
+Let's record your consciousness! Bring your own text editor!
+Implemented as a language server compatible with any text
+editor, Markdown-Oxide is attempting to be the best PKM
+system for software enthusiasts.
-Check the readme to see how to get nvim-cmp properly working.
+Check the readme to see how to properly setup nvim-cmp.
]],
},
}