mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2024-08-21
This commit is contained in:
@@ -3,3 +3,5 @@ vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
vim.opt_local.wrap = true
|
||||
vim.opt_local.spell = true
|
||||
vim.wo.foldlevel = 99
|
||||
vim.wo.conceallevel = 2
|
||||
|
||||
@@ -16,13 +16,12 @@ end
|
||||
local embedded_sql = vim.treesitter.query.parse(
|
||||
"rust",
|
||||
[[
|
||||
(macro_invocation
|
||||
(scoped_identifier
|
||||
path: (identifier) @path (#eq? @path "sqlx"))
|
||||
|
||||
(token_tree
|
||||
(raw_string_literal) @sql)
|
||||
(#offset! @sql 1 0 -1 0))
|
||||
([
|
||||
(string_literal)
|
||||
(raw_string_literal)
|
||||
] @sql
|
||||
(#match? @sql "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
|
||||
(#offset! @sql 0 1 0 -1))
|
||||
]]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user