Closed Geerayef closed 6 months ago
Hey!
Could you try updating nvim-lspconfig?
Thank you for the swift reply :)
I tried updating nvim-lspconfig but it seems that nothing changed -- I still see the same error.
For additional context: I also use obsidian.nvim, markdown-preview.nvim and I disabled marksman LSP.
Would installing markdown-oxide from another source (cargo source instead of binary or AUR) make a difference?
Theoretically it shoulddn't make a difference right?
Great though but that should not matter.
The setup looks good, but I'm wondering if you are calling .setup from different contexts. Does the language server work by any chance? You could test completions and such.
Also the *.md
pattern is very interesting; I want to see if this works!
Regarding your thoughts on calling setup
from different contexts, It's not; it's only called once on startup when lspconfig
is set up along with all the specified servers.
I tried running markdown-oxide binaries from different installation sources, but nothing changed.
The language server does not work since it's not set up by lspconfig
—it only returns the error that I mentioned above: it cannot find the configuration for markdown-oxide. Running :LspInfo
shows there is no markdown_oxide set up.
Edit: running markdown-oxide
from the command line also does nothing; it just hangs and waits until it is cancelled. I don't know whether that's desired.
Regarding the *.md
pattern: I stole that from Ruff LSP for Python :) I use it for a few other servers like OCaml and it seems to work just fineTM
Also see this link
Thanks for the links!
This issue is just really odd because I am positive that markdown_oxide
is in the current version of nvim-lspconfig. This leads me to believe this must be a versioning issue
Would you mind posting you neovim version and lspconfig version?
I appreciate how responsive you are being too!
Agree, it is weird.
nvim-lspconfig
from lazy.nvim
:
● nvim-lspconfig 13.84ms BufReadPost
dir /home/user/.local/share/nvim/lazy/nvim-lspconfig
url https://github.com/neovim/nvim-lspconfig
version 0.1.7
tag v0.1.7
branch master
commit cf3dd4a
readme README.md
help |lspconfig.txt|
help |lspconfig-all|
event BufReadPost BufNewFile
Neovim:
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim
I hope that this helps
Hey so cf3dd4a is roughly 5 months old which is far before markdown-oxide was added to nvim-lspconfig.
I am not sure why Lazy is not updating the plugin, but that is surely the issue.
I hope you are able to figure it out!
I looked through your neovim config too; it looks very organized!
Great find! I completely missed it.
Thank you very much for helping me out! That was the issue, using the master
branch fixed it.
And thank you for the compliment, I appreciate it! :) If there's anything you like from my Dotfiles, feel free to use it.
Case closed.
🎉
Hey there!
I installed markdown-oxide via cargo and I'm trying to set it up for Neovim via lspconfig as per the instructions in the README.
However, on Neovim startup, I get the following message:
Of course, it is listed in the lspconfig's
server_configuration.md
since that's where I found instructions on how to set it up.This is my LSP configuration (with lazy.nvim):
I would appreciate it if anyone could point me in the right direction for debugging this further.
Thank you!