Refresh generated neovim config
This commit is contained in:
@ -36,10 +36,13 @@ require('lazy').setup {
|
||||
|
||||
**Setup:**
|
||||
|
||||
Defaults work out of the box.
|
||||
Set `vim.g.skip_ts_context_commentstring_module = true` somewhere in your configuration to skip backwards compatibility routines and speed up loading.
|
||||
For most commenting plugins, this is all you need and the defaults should work
|
||||
out of the box. However, some commenting plugins require a bit more set up. See
|
||||
the [Configuration section](#configuration) for more details about the different
|
||||
plugins.
|
||||
|
||||
If you want to change the configuration, call the `setup` function of this plugin, e.g.:
|
||||
If you want to change the configuration, call the `setup` function of this
|
||||
plugin, e.g.:
|
||||
|
||||
```lua
|
||||
require('ts_context_commentstring').setup {
|
||||
@ -65,6 +68,7 @@ when commenting. The available integrations are listed in the
|
||||
[wiki](https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations).
|
||||
The following plugins have an integration available:
|
||||
|
||||
- [Native Neovim commenting](https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations#native-commenting-in-neovim-010)
|
||||
- [`b3nj5m1n/kommentary`](https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations#kommentary)
|
||||
- [`terrortylor/nvim-comment`](https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations#nvim-comment)
|
||||
- [`numToStr/Comment.nvim`](https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations#commentnvim)
|
||||
|
||||
@ -16,26 +16,35 @@ Currently, the following languages are supported when they are injected with
|
||||
language tree (see `lua/ts_context_commentstring/internal.lua`):
|
||||
|
||||
- `astro`
|
||||
- `bash`
|
||||
- `c`
|
||||
- `cpp`
|
||||
- `css`
|
||||
- `cue`
|
||||
- `gleam`
|
||||
- `glimmer`
|
||||
- `go`
|
||||
- `graphql`
|
||||
- `handlebars`
|
||||
- `haskell`
|
||||
- `hcl`
|
||||
- `html`
|
||||
- `ini`
|
||||
- `javascript`
|
||||
- `kotlin`
|
||||
- `lua`
|
||||
- `nix`
|
||||
- `php`
|
||||
- `python`
|
||||
- `rego`
|
||||
- `rescript`
|
||||
- `roc`
|
||||
- `scss`
|
||||
- `shell`
|
||||
- `sql`
|
||||
- `solidity`
|
||||
- `sql`
|
||||
- `svelte`
|
||||
- `terraform`
|
||||
- `tsx`
|
||||
- `twig`
|
||||
- `typescript`
|
||||
|
||||
@ -60,7 +60,7 @@ M.config = {
|
||||
languages = {
|
||||
-- Languages that have a single comment style
|
||||
astro = '<!-- %s -->',
|
||||
c = { __default = '// %s', __multiline = '/* %s */' },
|
||||
c = '/* %s */',
|
||||
cpp = { __default = '// %s', __multiline = '/* %s */' },
|
||||
css = '/* %s */',
|
||||
cue = '// %s',
|
||||
@ -106,6 +106,10 @@ M.config = {
|
||||
statement_block = { __default = '// %s', __multiline = '/* %s */' },
|
||||
spread_element = { __default = '// %s', __multiline = '/* %s */' },
|
||||
},
|
||||
templ = {
|
||||
__default = '// %s',
|
||||
component_block = '<!-- %s -->',
|
||||
},
|
||||
},
|
||||
|
||||
---@deprecated Use the languages configuration instead!
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/nix/store/agkxax48k35wdmkhmmija2i2sxg8i7ny-bash-5.2p26/bin/bash
|
||||
#!/nix/store/4bj2kxdm1462fzcc2i2s4dn33g2angcc-bash-5.2p32/bin/bash
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user