chore: enable comment pre_hook
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
'numToStr/Comment.nvim',
|
'numToStr/Comment.nvim',
|
||||||
|
dependencies = {
|
||||||
|
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||||
|
},
|
||||||
event = { 'BufReadPre', 'BufNewFile' },
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
opts = {
|
opts = {
|
||||||
padding = true,
|
padding = true,
|
||||||
@@ -24,7 +27,9 @@ return {
|
|||||||
basic = true,
|
basic = true,
|
||||||
extra = true,
|
extra = true,
|
||||||
},
|
},
|
||||||
pre_hook = nil,
|
pre_hook = function()
|
||||||
|
require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
|
||||||
|
end,
|
||||||
post_hook = nil,
|
post_hook = nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
return {
|
return {
|
||||||
'JoosepAlviste/nvim-ts-context-commentstring',
|
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||||
enabled = true,
|
dependencies = {
|
||||||
dependencies = { 'numToStr/Comment.nvim' },
|
'numToStr/Comment.nvim',
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
},
|
||||||
event = 'VeryLazy',
|
event = 'VeryLazy',
|
||||||
opts = {
|
opts = {
|
||||||
enable_autocmd = false,
|
enable_autocmd = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user