aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--doc/server_configurations.md11
-rw-r--r--doc/server_configurations.txt11
-rw-r--r--lua/lspconfig/server_configurations/markdown_oxide.lua14
3 files changed, 18 insertions, 18 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 6efba4b2..5ff97e85 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -6630,9 +6630,12 @@ require'lspconfig'.m68k.setup{}
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.
@@ -6655,10 +6658,6 @@ require'lspconfig'.markdown_oxide.setup{}
```lua
see source file
```
- - `single_file_support` :
- ```lua
- true
- ```
## marksman
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 6efba4b2..5ff97e85 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -6630,9 +6630,12 @@ require'lspconfig'.m68k.setup{}
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.
@@ -6655,10 +6658,6 @@ require'lspconfig'.markdown_oxide.setup{}
```lua
see source file
```
- - `single_file_support` :
- ```lua
- true
- ```
## marksman
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.
]],
},
}