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,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)