re-ovo / unocss-intellij

Unocss support on Intellij Idea/WebStorm

Home Page:https://plugins.jetbrains.com/plugin/22204-unocss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attributify not work

Rasool-deldar opened this issue · comments

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(),
  ],
});
commented

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

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

commented

will be fixed in next update

will be fixed in next update

Thank you 🌹🌹🌹

commented

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