Skip to content

Commit

Permalink
update injection in README.md nvim usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
hankthetank27 committed Aug 14, 2024
1 parent 35288e8 commit 5be130e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ local liquid_injections = [[
(#set-lang-by-filetype! "css.liquid" "css")
(#set-lang-by-filetype! "scss.liquid" "scss")
(#set! injection.combined))
(javascript_statement
(js_content) @injection.content
(#set! injection.language "javascript")
(#set! injection.combined))
(schema_statement
(json_content) @injection.content
(#set! injection.language "json")
(#set! injection.combined))
(style_statement
(style_content) @injection.content
(#set! injection.language "css")
(#set! injection.combined))
((comment) @injection.content
(#set! injection.language "comment"))
]]

vim.treesitter.query.set("liquid", "injections", liquid_injections)
Expand Down

0 comments on commit 5be130e

Please sign in to comment.