mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
fix(formatter): prefer #-prefixed predicates
This prevents the formatter for appending a space after the "." in a predicate prefix, and changes it to a "#" to match all other occurrences in the codebase.
This commit is contained in:
committed by
Christian Clason
parent
285ec45123
commit
7194ff9511
@@ -114,6 +114,9 @@ local format_queries = [[
|
||||
":"
|
||||
"."
|
||||
] @format.append-space
|
||||
(predicate
|
||||
"." @format.cancel-append @format.replace
|
||||
(#gsub! @format.replace "%." "#"))
|
||||
(
|
||||
"." @format.prepend-space @format.cancel-append
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user