-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NeoVim: No completion working, even though LSP attaches and is available as source #295
Comments
Same here for me. Almost the exact config settings, same Would appreciate a solution very much, since my notes are kind of hard to skim through without working completion for links etc. Edit: I further tried to add an |
Yes, I have exactly the same experience. Adding the .marksman.toml file adds wiki-link completion and check for correct referencing. No other features are available though |
Had the same issue, after adding Which ig makes sense, since it needs some reference point where to start scanning from Here are my setup specs:
Using lazy with lspconfig lspconfig.marksman.setup({}) |
I may be a little late to the party but I got similar issues. References are working but neither highlighting nor completion seems to work. NeoVim information $ nvim --version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1692716794 I use lsp-zero which is based on lsp-config and Mason. My lsp config for marksman looks like this: lsp.configure("marksman", {
-- on_attach = function(client, bufnr)
-- ih.on_attach(client, bufnr)
-- end,
cmd = { "marksman", "server" }
}) The commented out part was only for inlay-hints integration. I thought this might be the problem but it was not. After reading this thread, I created the
I do not know anything about the LS protocoll but the last rpc.receive only contains empty data. Maybe that is normal but idk. Just seems odd to me. I also tested it with a minimalistic Markdown file since the one I want to edit is pretty large. It yielded the same log output except different paths and file content as you would expect but it was not working either. |
Same here |
I have installed Marksman with Mason, and set it up with LSP config.
My config works for all other LSP servers, but marksman does not work at all. No autocompletion, linking etc.
The LSP does attach to the buffer:
CmpStatus
shows that it is available as a source:The LspLog output the following messages when opening a markdown file:
[START][2024-02-01 04:25:48] LSP logging initiated
[ERROR][2024-02-01 04:25:48] .../vim/lsp/rpc.lua:734 | "rpc" | "/Users/[username]/.local/share/nvim/mason/bin/marksman" | "stderr" | "[04:25:48 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
This is my LSP config (I'm using nvim-cmp for completion):
and my nvim-cmp config:
Originally posted by @soer9459 in #294
The text was updated successfully, but these errors were encountered: