summaryrefslogtreecommitdiff
path: root/.config/nvim/after
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
parent5300faf8abf1ae43f873248f790382aecae4a712 (diff)
nvim: Fix bash injections finally
Diffstat (limited to '.config/nvim/after')
-rw-r--r--.config/nvim/after/ftdetect/bash.vim2
-rw-r--r--.config/nvim/after/queries/bash/injections.scm (renamed from .config/nvim/after/queries/sh/injections.scm)0
2 files changed, 2 insertions, 0 deletions
diff --git a/.config/nvim/after/ftdetect/bash.vim b/.config/nvim/after/ftdetect/bash.vim
new file mode 100644
index 0000000..56af254
--- /dev/null
+++ b/.config/nvim/after/ftdetect/bash.vim
@@ -0,0 +1,2 @@
+" Force bash syntax instead of sh so that we get tree-sitter support
+autocmd BufRead,BufNewFile *.sh set ft=bash
diff --git a/.config/nvim/after/queries/sh/injections.scm b/.config/nvim/after/queries/bash/injections.scm
index 3e11149..3e11149 100644
--- a/.config/nvim/after/queries/sh/injections.scm
+++ b/.config/nvim/after/queries/bash/injections.scm