Change completion order and groups

This commit is contained in:
Alexander Rosenberg 2022-12-06 19:44:44 -08:00
parent b0f63be745
commit ee93afbd3a
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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 [