Try to improve path completion

This commit is contained in:
Marcelo Jacobus 2024-12-16 12:59:06 -03:00
parent 7fd29d43ba
commit 3b72052a1a

View file

@ -78,6 +78,11 @@ return {
supertab(opts) supertab(opts)
format(opts) format(opts)
sources(opts) sources(opts)
-- Force `cmp-path` to trigger more aggressively
opts.completion = {
keyword_length = 1, -- Trigger after typing 1 character
keyword_pattern = [[\%(\k\|[./]\)\+]], -- Match paths and keywords
}
end, end,
}, },
} }