Skip to content

Commit

Permalink
refactor: changes cmp kind mode and fields arrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Dec 5, 2022
1 parent ebfcb8c commit b85342c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/config/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ import({ "cmp", "luasnip", "lspkind", "luasnip/loaders/from_vscode" }, function(
}),
},
formatting = {
fields = { "kind", "abbr", "menu" },
fields = { "abbr", "kind","menu" },
format = modules.lspkind.cmp_format({
mode = "symbol",
maxwidth = 50,

mode = "symbol_text",
before = function(entry, vim_item)
vim_item.menu = ({
nvim_lsp = "[LSP]",
Expand Down

0 comments on commit b85342c

Please sign in to comment.