mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 17:53:17 +01:00
neovim: Make commenting work with jsx/tsx
This commit is contained in:
parent
733cc14b0d
commit
5c29be9a01
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user