|
|
@ -28,6 +28,8 @@ return { |
|
|
|
"hrsh7th/cmp-buffer", |
|
|
|
"hrsh7th/cmp-path", |
|
|
|
"hrsh7th/cmp-nvim-lsp-signature-help", |
|
|
|
|
|
|
|
"Snikimonkd/cmp-go-pkgs", |
|
|
|
}, |
|
|
|
config = function() |
|
|
|
local cmp = require("cmp") |
|
|
@ -68,11 +70,21 @@ return { |
|
|
|
{ name = "buffer" }, |
|
|
|
{ name = "path" }, |
|
|
|
{ name = "vim-dadbod-completion" }, |
|
|
|
{ name = "go_pkgs" }, |
|
|
|
}, |
|
|
|
matching = { |
|
|
|
disallow_fullfuzzy_matching = false, |
|
|
|
disallow_partial_fuzzy_matching = false, |
|
|
|
disallow_fuzzy_matching = false, |
|
|
|
disallow_partial_matching = false, |
|
|
|
disallow_symbol_nonprefix_matching = false, |
|
|
|
disallow_prefix_unmatching = false, |
|
|
|
}, |
|
|
|
formatting = { |
|
|
|
expandable_indicator = true, |
|
|
|
fields = { "abbr", "kind", "menu" }, |
|
|
|
format = lspkind.cmp_format({ |
|
|
|
with_text = true, |
|
|
|
mode = "symbol_text", |
|
|
|
menu = { |
|
|
|
nvim_lua = "[API]", |
|
|
@ -81,6 +93,7 @@ return { |
|
|
|
vim_dadbod_completion = "[DBUI]", |
|
|
|
path = "[PATH]", |
|
|
|
buffer = "[BUFF]", |
|
|
|
go_pkgs = "[PKGS]", |
|
|
|
}, |
|
|
|
}), |
|
|
|
}, |
|
|
|