plugin: Use Comment.nvim | Resolve #646 & #626

This commit is contained in:
Akianonymus 2021-12-11 22:23:09 +05:30 committed by siduck
parent 16d035c031
commit d2db2cc1cd
3 changed files with 6 additions and 5 deletions

View file

@ -124,8 +124,8 @@ end
M.comment = function()
local m = plugin_maps.comment.toggle
map("n", m, ":CommentToggle <CR>")
map("v", m, ":CommentToggle <CR>")
map("n", m, ":lua require('Comment.api').toggle()<CR>")
map("v", m, ":lua require('Comment.api').gc(vim.fn.visualmode())<CR>")
end
M.dashboard = function()