summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <>2023-04-12 19:10:06 +0200
committerMike Vink <>2023-04-12 19:10:06 +0200
commit2b401d8b92d8d39c50333159e8e81fa60eff194f (patch)
tree8b3f9b46568c0312141959968a3646a0fc074119
parent852089112dc943667e86c5c7f3412c8f8d0186dd (diff)
fixup
-rw-r--r--fnl/conf/pkgs/cmp.fnl5
1 files changed, 3 insertions, 2 deletions
diff --git a/fnl/conf/pkgs/cmp.fnl b/fnl/conf/pkgs/cmp.fnl
index 33653b8..09bf0f7 100644
--- a/fnl/conf/pkgs/cmp.fnl
+++ b/fnl/conf/pkgs/cmp.fnl
@@ -1,7 +1,7 @@
(local cmp (require :cmp))
(local compare (require :cmp.config.compare))
-(local once false)
+(var once false)
(local string-startswith
(fn [str start]
@@ -68,7 +68,8 @@
:experimental {:ghost_text true}
:mapping (cmp.mapping.preset.cmdline)})
(cmp.setup.cmdline ":"
- {:sources (cmp.config.sources [{:name :path}]
+ {:matching {:disallow_prefix_unmatching true}
+ :sources (cmp.config.sources [{:name :path}]
[{:name :cmdline_history
:keyword_pattern "^[ABCDEFHIJKLMNOPQRSTUVWXYZ].*"
:entry_filter (fn [entry