diff --git a/templates/nvim/lua/lsp.lua.j2 b/templates/nvim/lua/lsp.lua.j2 index df5144e..92fbca2 100644 --- a/templates/nvim/lua/lsp.lua.j2 +++ b/templates/nvim/lua/lsp.lua.j2 @@ -105,7 +105,9 @@ cmp.setup({ formatting = { format = function(entry, vim_item) if entry.source.name == 'nvim_lsp' then - vim_item.menu = entry.source.source.client.name + vim_item.menu = string.format('[%s]', entry.source.source.client.name) + else + vim_item.menu = string.format('[%s]', entry.source.name) end return vim_item