xna00 / unocss-language-server

MIT License
53 stars 8 forks source link

some class completions dont work at all! #1

Closed siduck closed 1 year ago

siduck commented 1 year ago

this works image

this doesnt work

image image

and many other classes like bg-red-2 and so on.

siduck commented 1 year ago

any idea? @xna00

siduck commented 1 year ago

https://user-images.githubusercontent.com/59060246/209641896-e47b9a76-cfb5-4f97-a737-eeb75528c43d.mp4

it works weirdly, the completions regenerate when i quit insert mode

xna00 commented 1 year ago

if you are using nvim-cmp, you can add trigger_characters. sources = { { name = 'nvim_lsp', trigger_characters = {'-'} }, { name = 'luasnip' } }

siduck commented 1 year ago

if you are using nvim-cmp, you can add trigger_characters. sources = { { name = 'nvim_lsp', trigger_characters = {'-'} }, { name = 'luasnip' } }

thanks for the quick reply, btw tailwindcss didnt needed this, is it normal to force this behaviour specifically for this lsp?

xna00 commented 1 year ago

The code completion is provided by @unocss/autocomplete. This is its feature.

siduck commented 1 year ago

The code completion is provided by @unocss/autocomplete. This is its feature.

oh got it, thanks for the help