Skip to content

Commit

Permalink
feat: add markdown-oxide lsp (#3030)
Browse files Browse the repository at this point in the history
* 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 <glephunter@gmail.com>

* fix: use find git ancestor

Co-authored-by: Raphael <glephunter@gmail.com>

* Update markdown_oxide.lua

Co-authored-by: Raphael <glephunter@gmail.com>

---------

Co-authored-by: Raphael <glephunter@gmail.com>
  • Loading branch information
Feel-ix-343 and glepnir authored Feb 29, 2024
1 parent daa8ae2 commit 8ec68f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/lspconfig/server_configurations/markdown_oxide.lua
Original file line number Diff line number Diff line change
@@ -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.
]],
},
}

0 comments on commit 8ec68f7

Please sign in to comment.