Skip to content

Commit

Permalink
Merge pull request #20 from jasonrhansen/injected-lua
Browse files Browse the repository at this point in the history
Add support for injected lua
  • Loading branch information
JoosepAlviste authored Aug 17, 2021
2 parents 7131f56 + 1929142 commit 72a3f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ language tree (see
- `handlebars`
- `glimmer`
- `graphql`
- `lua`

This means that in any filetype, if the given languages are injected, this
plugin should detect them and correctly set the `commentstring`. For example,
Expand Down
1 change: 1 addition & 0 deletions lua/ts_context_commentstring/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ M.config = {
handlebars = '{{! %s }}',
glimmer = '{{! %s }}',
graphql = '# %s',
lua = '-- %s',

-- Languages that can have multiple types of comments
tsx = {
Expand Down

0 comments on commit 72a3f45

Please # to comment.