Behavior of add_filetype_source API
#2241
|
From a somewhat recent documentation update: 9202b26
I don't believe this is the case right? It seems like the behavior is Was this in preparation for a change to the API in a future release? Or do the V2 changes make all of this irrelevant and in-process LSPs are the way to create completion sources going forward. |
Replies: 2 comments
|
You're right, not sure when that bug slipped in but fixed it in 40380e7. Will make a release shortly
They will but they're quite a ways out (waiting for 0.12 to stabilize and it's a lot of work). But in-process LSPs of course work well with V1 so it's still a good idea to migrate to them if you've got the time for it. If it helps, here's an example of the path source using a slightly modified version of the |
|
Thanks for the quick fix! I did end up creating an in-process LSP for my plugin a little while back after seeing it in crates.nvim, thought it made sense to be more agnostic about what's actually doing the completions. Naturally the completion engine integrations existed before and still have users. Maybe when v2 is released I can use it as a reason to remove them entirely :P For the time being will keep them around. I took a look at your implementation and it's fairly similar but it looks like you're adding a |
You're right, not sure when that bug slipped in but fixed it in 40380e7. Will make a release shortly
They will but they're quite a ways out (waiting for 0.12 to stabilize and it's a lot of work). But in-process LSPs of course work well with V1 so it's still a good idea to migrate to them if you've got the time for it.
If it helps, here's an example of the path source using a slightly modified version of the
vim.lsp.serverPR in the neovim repo. It's untested but the general idea should be there.