neoformat icon indicating copy to clipboard operation
neoformat copied to clipboard

Configuring enabled formatters doesn't seem to take effect

Open itmecho opened this issue 3 years ago • 1 comments

I have g:neoformat_enabled_typescript = ['prettier'] in my config to stop neoformat from using clang-format when prettier fails but it doesn't seem to be working.

I can see that the setting is configured properly but the enabled formatters don't seem to be affected?

:echo g:neoformat_enabled_typescript
['prettier']

:echo neoformat#formatters#typescript#enabled()
['tsfmt', 'prettier', 'prettiereslint', 'tslint', 'eslint_d', 'clangformat', 'denofmt']

itmecho avatar Sep 23 '21 08:09 itmecho

@itmecho It's not an answer to your question, but if you're formatting a TSX file you may need to configure the typescriptreact filetype too:

let g:neoformat_enabled_typescriptreact = ['prettier']

Tripped me up for a while!

elliotdavies avatar Nov 16 '21 11:11 elliotdavies