mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 05:51:04 +00:00
Try to improve path completion
This commit is contained in:
parent
7fd29d43ba
commit
3b72052a1a
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue