Skip to content
New issue

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

feat(render): support source_id and source_name in menu render #400

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

tim3nd
Copy link
Contributor

@tim3nd tim3nd commented Nov 28, 2024

allow blink to show source related info in completion menu

example (LSP and Snippets are item's source_name):

image

related config from example

		---@module 'blink.cmp'
		opts = {
				menu = {
					draw = {
						columns = {
							{ "label", "label_description", gap = 1 },
							{ "kind_icon", "kind", gap = 1 },
							{ "source_name" },
						},
					},
				},
			},
		},

source_name has been added as one of default config components for demonstration, but I'm not sure if it's appropriate.

@Saghen Saghen merged commit d5f62f9 into Saghen:main Nov 28, 2024
@Saghen
Copy link
Owner

Saghen commented Nov 28, 2024

Thanks! source_name seems like a good default for most users

Copy link
Contributor Author

@tim3nd tim3nd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to bother, but I think there is a typo in readme.

README.md Show resolved Hide resolved
Saghen added a commit that referenced this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants