plugins/nvim-cmp: refactoring

This commit is contained in:
Gaetan Lepage 2023-08-17 16:07:28 +02:00 committed by Gaétan Lepage
parent 24350879b1
commit 02a0093468
2 changed files with 537 additions and 528 deletions

File diff suppressed because it is too large Load diff

View file

@ -23,9 +23,7 @@
asyncBudget = 1; asyncBudget = 1;
maxViewEntries = 200; maxViewEntries = 200;
}; };
preselect = "Item"; preselect = "Item";
snippet = { snippet = {
expand.__raw = '' expand.__raw = ''
function(_) function(_)
@ -33,14 +31,12 @@
end end
''; '';
}; };
completion = { completion = {
keywordLength = 1; keywordLength = 1;
keywordPattern = ''\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%(-\w*\)*\)''; keywordPattern = ''\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%(-\w*\)*\)'';
autocomplete = ["TextChanged"]; autocomplete = ["TextChanged"];
completeopt = "menu,menuone,noselect"; completeopt = "menu,menuone,noselect";
}; };
confirmation = { confirmation = {
getCommitCharacters = '' getCommitCharacters = ''
function(commit_characters) function(commit_characters)
@ -48,7 +44,6 @@
end end
''; '';
}; };
formatting = { formatting = {
expandableIndicator = true; expandableIndicator = true;
fields = ["abbr" "kind" "menu"]; fields = ["abbr" "kind" "menu"];
@ -58,7 +53,6 @@
end end
''; '';
}; };
matching = { matching = {
disallowFuzzyMatching = false; disallowFuzzyMatching = false;
disallowFullfuzzyMatching = false; disallowFullfuzzyMatching = false;
@ -66,7 +60,6 @@
disallowPartialMatching = false; disallowPartialMatching = false;
disallowPrefixUnmatching = false; disallowPrefixUnmatching = false;
}; };
sorting = { sorting = {
priorityWeight = 2; priorityWeight = 2;
comparators = [ comparators = [
@ -80,20 +73,19 @@
"order" "order"
]; ];
}; };
sources = []; sources = [];
experimental = { experimental = {
ghost_text = false; ghost_text = false;
}; };
view = { view = {
entries = { entries = {
name = "custom"; name = "custom";
selection_order = "top_down"; selection_order = "top_down";
}; };
docs = {
autoOpen = true;
};
}; };
window = { window = {
completion = { completion = {
border = ["" "" "" "" "" "" "" ""]; border = ["" "" "" "" "" "" "" ""];