aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.
]],
},
}