fix: switch commenting plugin for better vue file support
This commit is contained in:
parent
6b76cba0e2
commit
1078cc9d3b
9
lua/config/comment.lua
Normal file
9
lua/config/comment.lua
Normal file
@ -0,0 +1,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()
|
||||
end
|
||||
end
|
||||
|
||||
require("nvim_comment").setup(config)
|
@ -83,8 +83,12 @@ local function usePlugins(use, use_rocks)
|
||||
-- Smooth smooth scrolling
|
||||
use 'psliwka/vim-smoothie'
|
||||
|
||||
-- Toggle comments
|
||||
use 'tpope/vim-commentary'
|
||||
-- Commenting
|
||||
use {
|
||||
'terrortylor/nvim-comment',
|
||||
config = [[require 'config.comment']],
|
||||
requires = 'JoosepAlviste/nvim-ts-context-commentstring'
|
||||
}
|
||||
|
||||
-- Color code colorizer
|
||||
use { 'norcalli/nvim-colorizer.lua', config = [[require 'config.colorizer']] }
|
||||
|
Loading…
Reference in New Issue
Block a user