fix: update commenting plugin for vue
This commit is contained in:
parent
a737d0cbc6
commit
a6476a94fb
@ -2,8 +2,10 @@ local config = {}
|
|||||||
|
|
||||||
if packer_plugins['nvim-ts-context-commentstring'] and packer_plugins['nvim-ts-context-commentstring'].loaded then
|
if packer_plugins['nvim-ts-context-commentstring'] and packer_plugins['nvim-ts-context-commentstring'].loaded then
|
||||||
config.hook = function()
|
config.hook = function()
|
||||||
|
if vim.api.nvim_buf_get_option(0, "filetype") == "vue" then
|
||||||
require("ts_context_commentstring.internal").update_commentstring()
|
require("ts_context_commentstring.internal").update_commentstring()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
require("nvim_comment").setup(config)
|
require("nvim_comment").setup(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user