diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-03-07 23:48:56 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-03-07 23:48:56 +0100 |
commit | bccb63aa195c2f097157797aa9c865d80cc76708 (patch) | |
tree | 47aace121118f4eb8f537bbba231399c1918e71f /fnl/plugins | |
parent | 536d58adccd8b679b7b2423230bdaa25cb1f3305 (diff) |
Improve cmp latency
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/cmp.fnl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fnl/plugins/cmp.fnl b/fnl/plugins/cmp.fnl index 2b4baaa..65acb58 100644 --- a/fnl/plugins/cmp.fnl +++ b/fnl/plugins/cmp.fnl @@ -35,13 +35,16 @@ :<c-e> (cmp.mapping {:i (cmp.mapping.abort) :c (cmp.mapping.close)}) :<c-y> (cmp.mapping.confirm {:select true})}) - :sources [{:name :nvim_lsp} + :sources [{:name :nvim_lsp + :group_index 1 + :keyword_length 3 + :max_item_count 32} + {:name :buffer :group_index 2} + {:name :spell :group_index 3} {:name :nvim_lua} {:name :luasnip} - {:name :spell} {:name :orgmode} {:name :neorg} - {:name :buffer :keyword_length 4} {:name :path :keyword_length 6} {:name :vim-dadbod-completion} {:name :git}] @@ -62,6 +65,10 @@ :completion {:scrollbar false}} :confirm_opts {:behavior cmp.ConfirmBehavior.Replace :select false} + :performance {:debounce 200 + :throttle 250 + :fetching_timeout 80 + :max_view_entries 16} :experimental {:ghost_text false :native_menu false}}) (cmp.setup.cmdline "/" {:mapping (cmp.mapping.preset.cmdline) |