Nvim: modernize config + some tweaks in lsp
This commit is contained in:
@@ -33,6 +33,8 @@ cmp.setup({
|
||||
|
||||
{ name = 'calc' },
|
||||
|
||||
{ name = 'cmp_matlab' },
|
||||
|
||||
{ name = 'cmp_git' },
|
||||
}, {
|
||||
{ name = 'buffer', keyword_length = 5, max_item_count = 10, priority = -5 },
|
||||
@@ -40,6 +42,19 @@ cmp.setup({
|
||||
--experimental = {
|
||||
-- native_menu = false
|
||||
--}
|
||||
|
||||
sorting = {
|
||||
comparators = {
|
||||
cmp.config.compare.offset,
|
||||
cmp.config.compare.exact,
|
||||
cmp.config.compare.recently_used,
|
||||
require("clangd_extensions.cmp_scores"),
|
||||
cmp.config.compare.kind,
|
||||
cmp.config.compare.sort_text,
|
||||
cmp.config.compare.length,
|
||||
cmp.config.compare.order,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
cmp.setup.cmdline('/', {
|
||||
|
||||
Reference in New Issue
Block a user