From e566e03da8bb2627d0f4df6777761add72cd63c9 Mon Sep 17 00:00:00 2001 From: Slotos Date: Sun, 12 Nov 2023 23:29:51 +0100 Subject: [PATCH] Add bash configuration Sh is handled by bash tree-sitter parser. `vim.treesitter.language.get_lang('sh')` returns `bash`. This change makes this plugin work with both sh and bash files. --- lua/ts_context_commentstring/config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/ts_context_commentstring/config.lua b/lua/ts_context_commentstring/config.lua index 0f10c27..54d37f7 100644 --- a/lua/ts_context_commentstring/config.lua +++ b/lua/ts_context_commentstring/config.lua @@ -73,6 +73,7 @@ M.config = { rescript = { __default = '// %s', __multiline = '/* %s */' }, scss = { __default = '// %s', __multiline = '/* %s */' }, sh = '# %s', + bash = '# %s', solidity = { __default = '// %s', __multiline = '/* %s */' }, sql = '-- %s', svelte = '',