From ee93afbd3a70fd749464e5c683c8e1ea4b05a417 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 6 Dec 2022 19:44:44 -0800 Subject: [PATCH] Change completion order and groups --- fnl/plugin/cmp.fnl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/fnl/plugin/cmp.fnl b/fnl/plugin/cmp.fnl index 7b2d349..bee19cd 100644 --- a/fnl/plugin/cmp.fnl +++ b/fnl/plugin/cmp.fnl @@ -54,15 +54,13 @@ entry.source.name)) vim_item) } - :sources (cmp.config.sources - [{ :name "nvim_lsp" :priority 2 } - { :name "snippy" :priority 1 } - { :name "buffer" :priority 0 } - { :name "path" :priority 0 }] - [{ :name "treesitter" :priority 2 } - { :name "snippy" :priority 1 } - { :name "buffer" :priority 0 } - { :name "path" :priority 0 }]) + :sources [{ :name "nvim_lsp" :priority 2 :group 1 } + { :name "snippy" :priority 2 :group 2 } + { :name "treesitter" :priority 1 :group 3 } + { :name "buffer" :priority 0 :group 3 } + { :name "path" :priority 0 :group 4 }] + :view { + :entries { :name "custom" :selection_order "near_cursor" }} :sorting { :priority_weight 2 :comparators [