mattn / mattn/emmet-vim

Possible to Customize Haml Expansion?

Open
#216 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
6.5k
Forks
414
PR merge metrics
No merged PRs in 30d

Description

First and foremost, thanks for an AMAZING utility! I'm looking forward to putting it to use.

I was playing with Emmet for expanding HAML this morning and came across one thing that, after researching, I can't figure out how to customize and I was hoping someone might be able to point me in the right direction.

If I type the following in a HAML file

html:5

and expand it, I get the following

!!! 5
%html{:lang => "en"}
  %head
    %meta{:charset => "UTF-8"}
    %title
  %body

It's beautiful! I'm curious, however, to know if there's a way to customize the haml output to utilize the parenthesis syntax as opposed to the hash syntax? I would love to see the below instead

!!! 5
%html(lang="en")
  %head
    %meta(charset="UTF-8")
    %title
  %body

Is there a configuration somewhere you can point me to?

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the existing Haml expansion configuration and the four-comment discussion; done means determining whether the requested parenthesis syntax can be configured and documenting or implementing that behavior if it is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.