-
Notifications
You must be signed in to change notification settings - Fork 77
Trigger path completion only after typing path separator #373
Comments
Similarly, if a path separator is found completion should only offer path completion items (e.g. if I have |
@noib3
|
I didn't know that, I just tried it and it works. However having two separate completion sources is not very ergonomic since it requires extra key presses to select the right source. I wish I could specify |
You could play around with |
I tried that with the following setup (lua syntax): local g = vim.g
g.completion_chain_complete_list = {
default = {
{complete_items = {'path'}, triggered_only = {'/'}},
{complete_items = {'lsp'}},
},
}
g.completion_auto_change_source = 1 I'd expect |
the per source |
Is your feature request related to a problem? Please describe.
Let's say I have a directory with a single
foo.vim
file inside it and I start editing it.Having included
'path'
in my defaultcomplete_items
, if I typef
I getfoo.vim Path (file)
as an autocompletion suggestion. I'd like to change this behaviour so that the autocompletion triggers only after typing/
, so in this case if I wanted to autocompletefoo.vim
I'd have to type./
.Describe the solution you'd like
Completions from
Path
sources are only triggered after typing the os's path separator.The text was updated successfully, but these errors were encountered: