home: vim: completion: add 'cmp-under-comparator'

This commit is contained in:
Bruno BELANYI 2022-03-07 15:27:57 +01:00
parent 52722fb408
commit 3e0a5ef1a4
2 changed files with 3 additions and 0 deletions

View file

@ -74,6 +74,7 @@ in
cmp-path # Path name suggestions
cmp-nvim-lsp # LSP suggestions
cmp-nvim-lua # NeoVim lua API
cmp-under-comparator # Sort items that start with '_' lower
# UX improvements
dressing-nvim # Integrate native UI hooks with Telescope etc...

View file

@ -3,6 +3,7 @@ set completeopt=menu,menuone,noselect
lua << EOF
local cmp = require("cmp")
local cmp_under_comparator = require("cmp-under-comparator")
cmp.setup({
mapping = {
@ -67,6 +68,7 @@ cmp.setup({
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
cmp_under_comparator.under,
cmp.config.compare.kind,
cmp.config.compare.sort_text,
cmp.config.compare.length,