From 70fb8cf9c13555aad4be0eebef04e4baf76e5ae9 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 12 Feb 2024 15:05:29 +0100 Subject: leap --- .config/nvim/lua/packs.lua | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to '.config/nvim/lua/packs.lua') diff --git a/.config/nvim/lua/packs.lua b/.config/nvim/lua/packs.lua index 0b6771d..9733c77 100644 --- a/.config/nvim/lua/packs.lua +++ b/.config/nvim/lua/packs.lua @@ -39,19 +39,6 @@ return require('packer').startup({function(use) use 'theniceboy/nvim-deus' use 'savq/melange-nvim' use 'tpope/vim-fugitive' - use({ - "kylechui/nvim-surround", - requires = { - {'nvim-treesitter/nvim-treesitter'}, - {'nvim-treesitter/nvim-treesitter-textobjects'}, - }, - tag = "*", -- Use for stability; omit to use `main` branch for the latest features - config = function() - require("nvim-surround").setup({ - -- Configuration here, or leave empty to use defaults - }) - end - }) -- use 'tpope/vim-surround' use 'nvim-lualine/lualine.nvim' -- use 'voldikss/vim-floaterm' @@ -157,6 +144,30 @@ return require('packer').startup({function(use) 'alanfortlink/blackjack.nvim', requires = {'nvim-lua/plenary.nvim'}, } + use({ + "kylechui/nvim-surround", + requires = { + {'nvim-treesitter/nvim-treesitter'}, + {'nvim-treesitter/nvim-treesitter-textobjects'}, + }, + tag = "*", -- Use for stability; omit to use `main` branch for the latest features + config = function() + require("nvim-surround").setup({ + -- Configuration here, or leave empty to use defaults + }) + end + }) + use({ + 'ggandor/leap.nvim', + requires = {'tpope/vim-repeat'}, + config = function() + require('leap').setup({}) + vim.keymap.set({'n', 'x', 'o'}, 's', '(leap-forward-to)') + vim.keymap.set({'n', 'x', 'o'}, 'S', '(leap-backward-to)') + vim.keymap.set({'n', 'x', 'o'}, '', '(leap-forward-till)') + vim.keymap.set({'n', 'x', 'o'}, '', '(leap-backward-till)') + end + }) end, config = { display = { -- cgit v1.2.3