NiklasPor / prettier-plugin-go-template

Fixes prettier formatting for go templates 🐹

Home Page:prettier-plugin-go-template-niklaspor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't make it work in VSCode on gohtml with pnpm

BigBoulard opened this issue · comments

Hi,

Here are the steps I've walked through:

package installation (globally)

 > pnpm i -g prettier-plugin-go-template
 WARN  prettier-plugin-go-template has no binaries
+ prettier-plugin-go-template 0.0.13

get the global pnpm node_modules path

> pnpm root -g
/users/me/Library/pnpm/global/5/node_modules

set Prettier: Prettier Path in VSCode

/users/me/Library/pnpm/global/5/node_modules/prettier

Add a .prettierrc config file

{
  "overrides": [
    {
      "files": ["*.gohtml"],
      "options": {
        "parser": "go-template"
      }
    }
  ],
  "goTemplateBracketSpacing": true
}

outcome: nothing. Prettier is not available for .gohtml files