Closed tmke8 closed 3 months ago
Right after posting this, I noticed this in the README:
root_dir = lspconfig.util.root_pattern('.git', vim.fn.getcwd()), -- this is a temp fix for an error in the lspconfig for this LS
})
I have added this to the nvim config and did
touch .git
and now it works! Sorry!
Yea sorry about that; trying to get the lspconfig fixed; there is an error with single_file_support
I believe. #11 related
Also, if you have the vim.fn.getcwd() version it should work on any vault even without git.
And also make sure to set capabilities.workspace.didChangeWatchedFiles.dynamicRegistration = true to get the language server to reload when you save files.
It does indeed work without the .git
. Specifically for Obsidian, I suppose I could also use .obsidian
for the root pattern?
sure yea great! Ill make that happen in the new lspconfig PR
I have two Obsidian vaults – one smaller, one larger. markdown-oxide works fine in the smaller one, but in the larger one, I get this error in nvim:
I don't really understand what's the problem though.
What can I do to debug this? I built it with cargo from this commit: 2c577116 , I'm using NVIM v0.9.5 with these settings:
(
on_attach
is a pretty long function)