1
0

fix: update commenting plugin for vue

This commit is contained in:
Rokas Puzonas 2022-04-01 22:20:55 +03:00
parent a737d0cbc6
commit a6476a94fb

View File

@ -2,7 +2,9 @@ local config = {}
if packer_plugins['nvim-ts-context-commentstring'] and packer_plugins['nvim-ts-context-commentstring'].loaded then
config.hook = function()
require("ts_context_commentstring.internal").update_commentstring()
if vim.api.nvim_buf_get_option(0, "filetype") == "vue" then
require("ts_context_commentstring.internal").update_commentstring()
end
end
end