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

Documentation omitting brackets #193

Closed
sieuwerts opened this issue Oct 25, 2024 · 4 comments
Closed

Documentation omitting brackets #193

sieuwerts opened this issue Oct 25, 2024 · 4 comments
Labels
bug Something isn't working windows Module which displays UI

Comments

@sieuwerts
Copy link

sieuwerts commented Oct 25, 2024

Plugin version: 0.4.1

When showing the function declaration (golang in this case) in the documentation, brackets seem to be omitted.

Actual: func(format domain.Format) mapstringdomain.Category
Expected: func(format domain.Format) map[string]domain.Category

image

Thank you for an awesome plugin 🚀

Configuration:

return {
	"saghen/blink.cmp",
	lazy = false,
	dependencies = "rafamadriz/friendly-snippets", 
	version = "v0.*",
	config = function()
		local opts = {
			highlight = {
				use_nvim_cmp_as_default = true,
			},
			nerd_font_variant = "normal",
			accept = { auto_brackets = { enabled = true } },
			keymap = {
				show = "<C-n>",
				hide = "<C-e>",
				accept = "<C-y>",
				select_prev = { "<C-p>" },
				select_next = { "<C-n>" },

				scroll_documentation_up = "<C-b>",
				scroll_documentation_down = "<C-f>",

				snippet_forward = "<Tab>",
				snippet_backward = "<S-Tab>",
			},
			windows = {
				autocomplete = {
					border = "rounded",
				},
				documentation = {
					border = "rounded",
					auto_show = true,
				},
			},
		}

		require("blink.cmp").setup(opts)
	end,
}
@Saghen Saghen added bug Something isn't working windows Module which displays UI labels Oct 25, 2024
@Saghen Saghen closed this as completed in 2ac2f43 Oct 30, 2024
@sieuwerts
Copy link
Author

This is still an issue in 0.5.0 I'm afraid, at least partially. When showing the documentation before accepting (or adding parentheses) the issue still remains, while accepting, or adding parentheses, it shows up correctly. Not anything urgent, but I just thought that I'd let you know.

The images below shows what I mean.
image
image

@Saghen
Copy link
Owner

Saghen commented Oct 31, 2024

That commit hasn't been released yet, you might want to try on main

@sieuwerts
Copy link
Author

Oh, I'm sorry, I thought that it was included in the release, sorry for not checking that first.

@dikesh
Copy link

dikesh commented Nov 6, 2024

I am facing this issue in 0.5.1

Here is the python snippet

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Module which displays UI
Projects
None yet
Development

No branches or pull requests

3 participants