neovim: Make commenting work with jsx/tsx

This commit is contained in:
Donovan Glover 2023-12-30 17:36:13 -05:00
parent 733cc14b0d
commit 5c29be9a01
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -455,7 +455,11 @@ in
{ {
plugin = comment-nvim; plugin = comment-nvim;
type = "lua"; type = "lua";
config = ''require('Comment').setup()''; config = /* lua */ ''
require('Comment').setup {
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
}
'';
} }
{ {
plugin = zen-mode-nvim; plugin = zen-mode-nvim;
@ -589,6 +593,15 @@ in
require('tailwindcss-colors').setup() require('tailwindcss-colors').setup()
''; '';
} }
{
plugin = nvim-ts-context-commentstring;
type = "lua";
config = /* lua */ ''
require('ts_context_commentstring').setup {
enable_autocmd = false,
}
'';
}
cosco-vim cosco-vim
fzf-vim fzf-vim
vim-caddyfile vim-caddyfile