We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return { 'hrsh7th/nvim-cmp', lazy = true, event = 'LspAttach', dependencies = { 'hrsh7th/cmp-nvim-lsp', { 'saadparwaiz1/cmp_luasnip', dependencies = { 'L3MON4D3/LuaSnip', }, }, 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', }, config = function() local cmp_kinds = { Text = " ", Method = " ", Function = " ", Constructor = " ", Field = " ", Variable = " ", Class = " ", Interface = " ", Module = " ", Property = " ", Unit = " ", Value = " ", Enum = " ", Keyword = " ", Snippet = " ", Color = " ", File = " ", Reference = " ", Folder = " ", EnumMember = " ", Constant = " ", Struct = " ", Event = " ", Operator = " ", TypeParameter = " ", } local cmp = require('cmp') cmp.setup({ formatting = { fields = { 'kind', 'abbr', 'menu' }, format = function(_, vim_item) vim_item.menu = ' ' .. vim_item.kind vim_item.kind = cmp_kinds[vim_item.kind] return vim_item end, }, }), end, }
The following is normal
and this is wrong
some times the vim_item.kind is nil
It appears irregularly
pop-ups steadily
as you see
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
FAQ
Announcement
Minimal reproducible full config
The following is normal
![normal](https://private-user-images.githubusercontent.com/96783720/332426685-07dd2e09-f301-4f3f-9716-4644e1e955cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MjU2MDcsIm5iZiI6MTcyMDUyNTMwNywicGF0aCI6Ii85Njc4MzcyMC8zMzI0MjY2ODUtMDdkZDJlMDktZjMwMS00ZjNmLTk3MTYtNDY0NGUxZTk1NWNjLnBuZz9YLUFtei1BbGdvcml0aG09Q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DVmYWNhYzdmNzYwZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SrvhgJ-1XZQ0VvkDQS21YklwEz-eY_ajuHcNaSe4xb8)
Description
some times the vim_item.kind is nil
Steps to reproduce
It appears irregularly
Expected behavior
pop-ups steadily
Actual behavior
as you see
Additional context
No response
The text was updated successfully, but these errors were encountered: