mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-07 20:53:51 +00:00
fix: enable javascript formatter
This commit is contained in:
parent
f71493ad33
commit
4cf72b8b92
1 changed files with 2 additions and 1 deletions
|
|
@ -301,7 +301,8 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
formatters_by_ft.typescript = cfg.format.type;
|
formatters_by_ft.typescript = cfg.format.type;
|
||||||
# .tsx files
|
formatters_by_ft.javascript = cfg.format.type;
|
||||||
|
# .tsx/.jsx files
|
||||||
formatters_by_ft.typescriptreact = cfg.format.type;
|
formatters_by_ft.typescriptreact = cfg.format.type;
|
||||||
setupOpts.formatters =
|
setupOpts.formatters =
|
||||||
mapListToAttrs (name: {
|
mapListToAttrs (name: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue