Resetup the comment plugin with support for jsx, svelte, html, and such

This commit is contained in:
Tyler Kelley 2024-05-15 14:10:29 -05:00
parent 6db728529b
commit a0b6112980
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
local comment = require("Comment")
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
-- enable comment
comment.setup({
-- for commenting tsx, jsx, svelte, html files
pre_hook = ts_context_commentstring.create_pre_hook(),
})

View File

@ -199,6 +199,7 @@ in
friendly-snippets
lspkind-nvim
comment-nvim
nvim-ts-context-commentstring
{
plugin = dracula-nvim;
config = "colorscheme dracula";
@ -217,13 +218,13 @@ in
${builtins.readFile ../../config/nvim/plugins/alpha.lua}
${builtins.readFile ../../config/nvim/plugins/autopairs.lua}
${builtins.readFile ../../config/nvim/plugins/auto-session.lua}
${builtins.readFile ../../config/nvim/plugins/comment.lua}
${builtins.readFile ../../config/nvim/plugins/cmp.lua}
${builtins.readFile ../../config/nvim/plugins/nvim-tree.lua}
${builtins.readFile ../../config/nvim/plugins/telescope.lua}
${builtins.readFile ../../config/nvim/plugins/treesitter.lua}
require("ibl").setup()
require("bufferline").setup{}
require("Comment").setup()
require("lualine").setup({
icons_enabled = true,
theme = 'dracula',