neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

queries: add some user defined queries

Signed-off-by: Seongmin Lee <git@boltless.me>

+54
+46
after/queries/html/injections.scm
··· 1 + ; inherits html 2 + 3 + ; <div hx-on:click="foo()"> 4 + (attribute 5 + (attribute_name) @_name 6 + (#lua-match? @_name "^hx%-on:") 7 + (quoted_attribute_value 8 + (attribute_value) @injection.content) 9 + (#set! injection.language "javascript")) 10 + 11 + ; <div hx-vals='js:{...}'> 12 + (attribute 13 + (attribute_name) @_name 14 + (#lua-match? @_name "^hx%-vals") 15 + (quoted_attribute_value 16 + (attribute_value) @injection.content) 17 + (#lua-match? @injection.content "^js:") 18 + (#offset! @injection.content 0 2 0 0) 19 + (#set! injection.language "javascript")) 20 + 21 + ; <div hx-vals='javascript:{...}'> 22 + (attribute 23 + (attribute_name) @_name 24 + (#lua-match? @_name "^hx%-vals") 25 + (quoted_attribute_value 26 + (attribute_value) @injection.content) 27 + (#lua-match? @injection.content "^javascript:") 28 + (#offset! @injection.content 0 11 0 0) 29 + (#set! injection.language "javascript")) 30 + 31 + ; <meta name="htmx-config" content='{...}'> 32 + (start_tag 33 + (tag_name) @_meta 34 + (#eq? @_meta "meta") 35 + (attribute 36 + (attribute_name) @_attr 37 + (#eq? @_attr "name") 38 + (quoted_attribute_value 39 + (attribute_value) @_name 40 + (#eq? @_name "htmx-config"))) 41 + (attribute 42 + (attribute_name) @_content 43 + (#eq? @_content "content") 44 + (quoted_attribute_value 45 + (attribute_value) @injection.content)) 46 + (#set! injection.language "json"))
+8
after/queries/toml/injections.scm
··· 1 + ; inherits toml 2 + 3 + ; """#!/usr/bin/env bash 4 + ( 5 + (string ["\"\"\"" "'''"]) @_str @injection.content 6 + (#lua-match? @_str "^...#!.*bash") 7 + (#offset! @injection.content 0 3 0 3) 8 + (#set! injection.language "bash"))