From 04c536078855a7f40a77f85d9476778fbe76403d Mon Sep 17 00:00:00 2001 From: Steffen Rademacker Date: Thu, 14 Jul 2022 17:00:24 +0200 Subject: [PATCH] Remove hop-mapping, require ragtag/repeat --- nvim/lua/mappings.lua | 2 +- nvim/lua/plugins.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/lua/mappings.lua b/nvim/lua/mappings.lua index 1605ad68..8ccddcab 100644 --- a/nvim/lua/mappings.lua +++ b/nvim/lua/mappings.lua @@ -90,6 +90,7 @@ map('n', 'x', 'lua vim.lsp.buf.code_action()') -- git map('n', 'l', 'FloatermNew lazygit') +map('n', 'gb', 'FloatermNew git blame %') map('n', 'gd', 'DiffviewOpen') map('n', 'gc', 'DiffviewClose') map('n', 'gh', 'DiffviewFileHistory') @@ -106,7 +107,6 @@ map('s', '', 'vsnip#available(-1) ? "(vsnip-jump-prev)" : ""', { -- other useful mappings map('n', '', 'checktimeredraw!'); -map('n', 'j', 'lua require("hop").hint_words()') map('n', 've', 'e $MYVIMRC') map('n', 'vr', 'source $MYVIMRC') map('n', 'w', 'set wrap! wrap?') diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 94d1ad00..5ac75411 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -30,7 +30,6 @@ return require('packer').startup(function(use) use { 'ur4ltz/surround.nvim', config = get_config('surround'), - requires = { 'tpope/vim-repeat' }, } -- lsp and null-ls for diagnostics and formatting (eslint_d, stylelint etc.) @@ -143,6 +142,8 @@ return require('packer').startup(function(use) -- oldschool vimscript plugins that still provide a lot of value use 'christoomey/vim-tmux-navigator' use 'editorconfig/editorconfig-vim' + use 'tpope/vim-repeat' + use 'tpope/vim-ragtag' use 'wincent/terminus' -- automatically set up configuration after cloning packer.nvim