re-ovo / unocss-intellij

Unocss support on Intellij Idea/WebStorm
https://plugins.jetbrains.com/plugin/22204-unocss
MIT License
173 stars 12 forks source link

Attributify not work #53

Closed Rasool-deldar closed 9 months ago

Rasool-deldar commented 9 months ago

Describe the bug I am using the @unocss/nuxt version and you wrote that you support Attributify, but the editor gives an error and I expect this error to be fixed.

image

And in this situation, the description does not show in the editor, please fix it

image

Environment Plugin Version: 1.4.4 IDE Version: 2023.3.3 Unocss Version(in package.json): 0.58.4

Unocss Config: (Share your uno.config.js/ts or vite config here)

// uno.config.ts
import { defineConfig } from 'unocss';
import transformerDirectives from '@unocss/transformer-directives';
import transformerCompileClass from '@unocss/transformer-compile-class';

export default defineConfig({
  details: true,
  transformers: [
    transformerDirectives({
      // the defaults
      applyVariable: ['--at-apply', '--uno-apply', '--uno'],
      // or disable with:
      // applyVariable: false
    }),
    transformerCompileClass(),
  ],
});
re-ovo commented 9 months ago

Hello, please add presetAttributify() to you unocss config to enable attributify support

Rasool-deldar commented 9 months ago

presetAttributify

This item was added in the nuxt plugin, but I installed the plugin again and added it, but these attributes are still unknown to idea

image

re-ovo commented 9 months ago

will be fixed in next update

Rasool-deldar commented 9 months ago

will be fixed in next update

Thank you 🌹🌹🌹

re-ovo commented 9 months ago

Wait, It is caused by your configuration file, if you are using standalone unocss configuration, then please do not define the configuration in nuxt.config because it will only read one configuration

You can put presetAttributify() into uno.config.ts