atom-community / autocomplete-paths

Autocomplete Paths for Atom
MIT License
151 stars 62 forks source link

How to make autocomplete working with twig files? #220

Open webmasterpf opened 5 years ago

webmasterpf commented 5 years ago

Hi,

I'm not able to autocomplete work into my twig files. In my project I have this:

/images
/templates/.twig files

My config.cson (inspired by examples found in issues):

"autocomplete-paths":
  scopes: [
    {
      scopes: [
        "images"
      ]
      prefixes: [
        "include directory ~"
      ]
      extensions: [
        "png"
        "jpg"
        "jpeg"
        "gif"
        "twig"
      ]
      replaceOnInsert: [
        [
          "(@[2-9]x)\\.png?$"
          ".png"
        ]
      ]
      relative: true
      includeCurrentDirectory: true
      projectRelativePath: false
    }
  ]

I would to autocomplete this kind of code: {% include directory ~ '/includes/dedicates_inc/inc_cdi_html.twig' %}or for Sass Mixin: @include backgroundImage("PNG/liens@3x.png");

thanks

webmasterpf commented 5 years ago

nobody can help me to get this module working for atom ?