obsidian-lsp : Language Server for Obsidian.md

Motivation
Obsidian.md is a fantastic tool that enables you to
create your own Wiki using Markdown. It's not only convenient but also boasts an
iOS app that makes viewing easy. However, my goal was to further enhance this
experience by allowing the use of any text editor like Neovim. The need for such
flexibility is what led me to the development of this LSP server for
Obsidian.md. It aims to make editing your Obsidian notes more efficient and
flexible, all in your editor of choice.
Features
The Obsidian.md LSP server provides the following main features:
The Obsidian.md LSP server makes your Obsidian usage more potent and efficient.
You can edit your Obsidian Wiki in your preferred editor, maximising its
potential.
How to use?
This is not a plugin itself and does not provide each function directly to the
editor. If you still want to try it, you can access each function with the
following settings.
Neovim
vim.api.nvim_create_autocmd("BufRead", {
pattern = "*.md",
callback = function()
local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')
if not configs.obsidian then
configs.obsidian = {
default_config = {
cmd = { "npx", "obsidian-lsp", "--", "--stdio" },
single_file_support = false,
root_dir = lspconfig.util.root_pattern ".obsidian",
filetypes = { 'markdown' },
},
}
end
lspconfig.obsidian.setup {}
end,
})
Related Projects