Open bushblade opened 1 year ago
Might be unrelated, but cmp does not show does not show astro's component props.
Hi @chalop It does show completion on component props for me.
Are you using JavaScript or TypeScript?
Sorry, I meant when invoking / using a component. Here's some examples:
The component has the following interface:
Nvim does not show the full list of available props:
While vscode does:
The lsp does give me the proper errors when I don't implement any required properties though, hence why I believe its an issue with nvim-cmp.
FAQ
Announcement
Minimal reproducible full config
Description
In *.astro files the completion doesn't close after accepting a completion and shows another completion for the closing tag. Subsequently pressing
<CR>
accepts the next completions suggestion.Steps to reproduce
Create any .astro file and try an write some markup.
Expected behavior
Completion closes and
<CR>
goes to a new line, same behaviour as in .jsx/.tsx/.vue/.html etc.Actual behavior
For example here I start typing
And hit
<CR>
to accept the completion...Which then shows another completion, so if I hit
<CR>
instead of the expected behaviour of going to a new line, it accepts the next suggestion...Which inserts another closing tag and again offers the same completion, this just keeps repeating as long as you press
<CR>
Additional context
No response