From 68c1a1cb17e9e0cdb96277a575e49c3ed66ba9a8 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 14 May 2024 12:02:09 +0200 Subject: [PATCH] nvim: custom injections --- home/config/nvim/after/queries/elixir/injections.scm | 8 ++++++++ home/config/nvim/plugins/treesitter.fnl | 1 + 2 files changed, 9 insertions(+) create mode 100644 home/config/nvim/after/queries/elixir/injections.scm diff --git a/home/config/nvim/after/queries/elixir/injections.scm b/home/config/nvim/after/queries/elixir/injections.scm new file mode 100644 index 0000000..efafaba --- /dev/null +++ b/home/config/nvim/after/queries/elixir/injections.scm @@ -0,0 +1,8 @@ +; extends + +; LUA +(sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content + (#eq? @_sigil_name "LUA") + (#set! injection.language "lua")) diff --git a/home/config/nvim/plugins/treesitter.fnl b/home/config/nvim/plugins/treesitter.fnl index 49c75a4..1b2a590 100644 --- a/home/config/nvim/plugins/treesitter.fnl +++ b/home/config/nvim/plugins/treesitter.fnl @@ -37,6 +37,7 @@ :ruby :scss :sql + :styled :svelte :toml :tsx