Skip to content

Commit

Permalink
feat: add nix support
Browse files Browse the repository at this point in the history
  • Loading branch information
calops committed Jun 22, 2023
1 parent 0bf8fbc commit 6cf6f28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ require('nvim-treesitter.configs').setup {
-- Here are the supported languages:
ensure_installed = {
'astro', 'css', 'glimmer', 'graphql', 'handlebars', 'html', 'javascript',
'lua', 'php', 'python', 'rescript', 'scss', 'svelte', 'tsx', 'twig',
'lua', 'nix', 'php', 'python', 'rescript', 'scss', 'svelte', 'tsx', 'twig',
'typescript', 'vim', 'vue',
},

Expand Down
1 change: 1 addition & 0 deletions doc/nvim-ts-context-commentstring.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ language tree (see `lua/ts_context_commentstring/internal.lua`):
- `html`
- `javascript`
- `lua`
- `nix`
- `php`
- `python`
- `rescript`
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 @@ -52,6 +52,7 @@ M.config = {
vim = '" %s',
twig = '{# %s #}',
python = { __default = '# %s', __multiline = '""" %s """' },
nix = { __default = '# %s', __multiline = '/* %s */' },

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

0 comments on commit 6cf6f28

Please sign in to comment.