In memory LSP for filepath completion #38274
antonk52
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Probably. The main friction is deciding how to document it and present it. That includes "how to enable it" (and finding a "pattern" since we presumably will want other in-process LSes in the future), should it be an option or "opt-in plugin", explaining how it fits with If we see a compelling story there then that makes it really easy to say "yes" :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made filepaths_ls which is a plain lua language server that provides completion for filepaths. I explored similar approach in the past with basics_ls which required nodejs.
The motivation was me never being able to use built in filepath completion reliably
<C-x><C-f>. This was due to 2 reasons$HOME/<C-x><C-f>inserts/users/me/and opens a completion menu if there are multiple items.Mainstream neovim completion plugins like blink.cmp and nvim-cmp with cmp-path reuse the same completion menu for all completion sources like lsp, filepaths etc. The same applies to mainstream GUI text editors i.e. VS Code, Zed, Sublime Text.
This can be useful for those who rely on builtin completion or use plugins that enhance builtin completion like mini.completion. Opposed to standalone completion plugins like blink.cmp or nvim-cmp.
Aside: I used to think that built in filepath completion could be improved by introducing a setting to force buffer relative path resolution by default. But perhaps having a built in LSP is an easier way both for implementation and more discoverable from the novice user side. I wonder if there is any interest in upstreaming something similar one day?
Beta Was this translation helpful? Give feedback.
All reactions