Skip to content

Commit

Permalink
Fix commenting for vue files
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ggs committed Jun 2, 2024
1 parent ddc75d4 commit 73b01f8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
14 changes: 13 additions & 1 deletion nvim/.config/nvim/lua/plugins/comment.lua
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
return { "numToStr/Comment.nvim", config = true }
return {
"numToStr/Comment.nvim",
-- dependencies = {
-- "JoosepAlviste/nvim-ts-context-commentstring",
-- },
opts = function()
return {
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
}
end,
config = true,
lazy = false,
}
3 changes: 3 additions & 0 deletions nvim/.config/nvim/lua/plugins/nvim-treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ return {
configs.setup({
ensure_installed = {
"astro",
"css",
"dockerfile",
"hcl",
"html",
Expand All @@ -22,9 +23,11 @@ return {
"python",
"query",
"rust",
"scss",
"svelte",
"typescript",
"vim",
"vue",
},
highlight = { enable = true },
rainbow = { enable = false, extended_mode = true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
return {
"JoosepAlviste/nvim-ts-context-commentstring",
config = true,
opts = {
enable_autocmd = false,
},
init = function()
vim.g.skip_ts_context_commentstring_module = true
end,
Expand Down

0 comments on commit 73b01f8

Please sign in to comment.