summaryrefslogtreecommitdiff
path: root/.config/nvim/after/queries/bash/injections.scm
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-19 21:25:05 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-19 21:25:05 +0200
commit89b3146866e5756b19438697fa0e0155b5047c56 (patch)
tree05abe898ae2c5f3a76943b5241e80b8b87bfffed /.config/nvim/after/queries/bash/injections.scm
parent5300faf8abf1ae43f873248f790382aecae4a712 (diff)
nvim: Fix bash injections finally
Diffstat (limited to '.config/nvim/after/queries/bash/injections.scm')
-rw-r--r--.config/nvim/after/queries/bash/injections.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/after/queries/bash/injections.scm b/.config/nvim/after/queries/bash/injections.scm
new file mode 100644
index 0000000..3e11149
--- /dev/null
+++ b/.config/nvim/after/queries/bash/injections.scm
@@ -0,0 +1,11 @@
+;; extends
+
+(command
+ name: (command_name) @injection.language
+ argument: (raw_string) @injection.content)
+
+((command
+ name: (command_name (word)) @_name
+ argument: (raw_string) @injection.content)
+ (#eq? @_name "gawk")
+ (#set! injection.language "awk"))