all repos

init.lua @ 844d556

my nvim config
2 files changed, 16 insertions(+), 0 deletions(-)
feat(treesitter): add sql syntax injection in gleam
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2024-08-24 14:29:32 +0300
Parent: d413608
M lua/plugins/treesitter.lua

@@ -19,6 +19,17 @@ (#match? @codeblock "--sql" "-- sql" "--SQL" "-- SQL")

(#offset! @codeblock 0 0 1 0))]] ), }, + gleam = { + codeblock_highlight = "ColorColumn", + query = vim.treesitter.query.parse( + "gleam", + [[((let + pattern: (identifier) @_identifier + (#any-of? @_identifier "sql" "q" "query") + value: (string (quoted_content) @codeblock)) + (#offset! @codeblock 0 0 1 0))]] + ), + }, } end, },
A queries/gleam/injections.scm

@@ -0,0 +1,5 @@

+((let + pattern: (identifier) @_identifier + (#any-of? @_identifier "sql" "q" "query") + value: (string (quoted_content) @injection.content)) + (#set! injection.language "sql"))