Skip to content

Commit

Permalink
refactor: remove otter as source (major update in otter) and change i…
Browse files Browse the repository at this point in the history
…con function
  • Loading branch information
brunomontezano committed Jul 19, 2024
1 parent c49860b commit 6555bd0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .config/nvim/lua/bruno/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@ return {

cmp.setup({
formatting = {
format = function(entry, vim_item)
vim_item.kind = string.format("%s %s", kind_icons[vim_item.kind], vim_item.kind)
vim_item.menu = ({
otter = "[Otter]",
format = function(entry, item)
item.kind = string.format("%s %s", kind_icons[item.kind], item.kind)
item.menu = ({
nvim_lsp = "[LSP]",
luasnip = "[LuaSnip]",
path = "[Path]",
})[entry.source.name]
return vim_item
return item
end,
},
snippet = {
Expand Down Expand Up @@ -99,7 +98,6 @@ return {
end, { "i", "s" }),
}),
sources = {
{ name = "otter" },
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "path" },
Expand Down

0 comments on commit 6555bd0

Please sign in to comment.