Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ tests/fake_formatter_output
scripts/nvim_doc_tools
scripts/nvim-typecheck-action
tmp/
.workspaces/
8 changes: 8 additions & 0 deletions doc/formatter_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ options = {
teal = "tl",
typescript = "ts",
},
interpolation_queries = {
nix = "(interpolation) @interp",
-- JS/TS template strings contain `${ ... }` substitutions.
javascript = "(template_substitution) @interp",
typescript = "(template_substitution) @interp",
jsx = "(template_substitution) @interp",
tsx = "(template_substitution) @interp",
},
-- Map of treesitter language to formatters to use
-- (defaults to the value from formatters_by_ft)
lang_to_formatters = {},
Expand Down
Loading