Chore | Change commenter plugin

This commit is contained in:
juan 2022-07-12 14:03:08 +08:00
parent 9897c9665a
commit 5977609f47
Signed by: juan
GPG Key ID: 5C1E5093C74F1DC7
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,4 @@
-- CORE SETTINGS
local opt = vim.o
local global = vim.g

View File

@ -41,8 +41,6 @@ vim.api.nvim_set_keymap('', '<leader>tt', ':TagbarToggle<cr>', {silent = true})
vim.api.nvim_set_keymap('', '<C-n>', ':NvimTreeToggle<cr>', {silent = true})
-- toggle formatter
vim.api.nvim_set_keymap('', '<leader>fm', ':Neoformat<cr>', {silent = true})
-- toggle comment
vim.api.nvim_set_keymap('', '<leader>/', ':CommentToggle<cr>', {silent = true})
-- toggle Hop
vim.api.nvim_set_keymap('', '<leader>b', ':HopWordBC<cr>', {silent = true})
vim.api.nvim_set_keymap('', '<leader>w', ':HopWordAC<cr>', {silent = true})

View File

@ -89,9 +89,8 @@ return require('packer').startup(function(use)
use {"machakann/vim-sandwich", event = "BufEnter"}
use {
"terrortylor/nvim-comment",
config = function() require('nvim_comment').setup() end,
cmd = "CommentToggle"
'numToStr/Comment.nvim',
config = function() require('Comment').setup() end
}
use {
"windwp/nvim-autopairs",
@ -184,7 +183,11 @@ return require('packer').startup(function(use)
-- integrations
use {"tpope/vim-fugitive", cmd = "G"}
use {"ellisonleao/glow.nvim", branch = 'main', cmd = {"Glow", "GlowInstall"}}
use {
"ellisonleao/glow.nvim",
branch = 'main',
cmd = {"Glow", "GlowInstall"}
}
-- fixes and misc. stuff
use {"antoinemadec/FixCursorHold.nvim"}