Nvim: modernize config + some tweaks in lsp

This commit is contained in:
Robert Kmieć
2022-05-31 22:09:46 +02:00
committed by Robert Kmiec
parent c8dcb66279
commit e1b0b4ae4d
7 changed files with 89 additions and 44 deletions

View File

@@ -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('/', {