Chore | Change commenter plugin
This commit is contained in:
parent
9897c9665a
commit
5977609f47
@ -1,5 +1,4 @@
|
|||||||
-- CORE SETTINGS
|
-- CORE SETTINGS
|
||||||
|
|
||||||
local opt = vim.o
|
local opt = vim.o
|
||||||
local global = vim.g
|
local global = vim.g
|
||||||
|
|
||||||
|
@ -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})
|
vim.api.nvim_set_keymap('', '<C-n>', ':NvimTreeToggle<cr>', {silent = true})
|
||||||
-- toggle formatter
|
-- toggle formatter
|
||||||
vim.api.nvim_set_keymap('', '<leader>fm', ':Neoformat<cr>', {silent = true})
|
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
|
-- toggle Hop
|
||||||
vim.api.nvim_set_keymap('', '<leader>b', ':HopWordBC<cr>', {silent = true})
|
vim.api.nvim_set_keymap('', '<leader>b', ':HopWordBC<cr>', {silent = true})
|
||||||
vim.api.nvim_set_keymap('', '<leader>w', ':HopWordAC<cr>', {silent = true})
|
vim.api.nvim_set_keymap('', '<leader>w', ':HopWordAC<cr>', {silent = true})
|
||||||
|
@ -89,9 +89,8 @@ return require('packer').startup(function(use)
|
|||||||
use {"machakann/vim-sandwich", event = "BufEnter"}
|
use {"machakann/vim-sandwich", event = "BufEnter"}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"terrortylor/nvim-comment",
|
'numToStr/Comment.nvim',
|
||||||
config = function() require('nvim_comment').setup() end,
|
config = function() require('Comment').setup() end
|
||||||
cmd = "CommentToggle"
|
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
@ -184,7 +183,11 @@ return require('packer').startup(function(use)
|
|||||||
|
|
||||||
-- integrations
|
-- integrations
|
||||||
use {"tpope/vim-fugitive", cmd = "G"}
|
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
|
-- fixes and misc. stuff
|
||||||
use {"antoinemadec/FixCursorHold.nvim"}
|
use {"antoinemadec/FixCursorHold.nvim"}
|
||||||
|
Loading…
Reference in New Issue
Block a user