Skip to content

Commit

Permalink
Add bash configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Slotos committed Nov 15, 2023
1 parent 79ebac7 commit e566e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/ts_context_commentstring/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<!-- %s -->',
Expand Down

0 comments on commit e566e03

Please sign in to comment.