mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +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;
|
||||
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;
|
||||
@ -589,6 +593,15 @@ in
|
||||
require('tailwindcss-colors').setup()
|
||||
'';
|
||||
}
|
||||
{
|
||||
plugin = nvim-ts-context-commentstring;
|
||||
type = "lua";
|
||||
config = /* lua */ ''
|
||||
require('ts_context_commentstring').setup {
|
||||
enable_autocmd = false,
|
||||
}
|
||||
'';
|
||||
}
|
||||
cosco-vim
|
||||
fzf-vim
|
||||
vim-caddyfile
|
||||
|
Loading…
Reference in New Issue
Block a user