diff options
author | Joe <rbo@gmx.us> | 2024-02-12 15:05:29 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-12 15:05:29 +0100 |
commit | 70fb8cf9c13555aad4be0eebef04e4baf76e5ae9 (patch) | |
tree | 2c649dbc0b8735ca33fb5cc63ad782c2f71a709c /.config | |
parent | up (diff) | |
download | dotfiles-bsd-70fb8cf9c13555aad4be0eebef04e4baf76e5ae9.tar.gz dotfiles-bsd-70fb8cf9c13555aad4be0eebef04e4baf76e5ae9.tar.bz2 dotfiles-bsd-70fb8cf9c13555aad4be0eebef04e4baf76e5ae9.tar.xz dotfiles-bsd-70fb8cf9c13555aad4be0eebef04e4baf76e5ae9.tar.zst dotfiles-bsd-70fb8cf9c13555aad4be0eebef04e4baf76e5ae9.zip |
leap
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/packs.lua | 37 |
1 files changed, 24 insertions, 13 deletions
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'}, '<leader>s', '<Plug>(leap-forward-to)') + vim.keymap.set({'n', 'x', 'o'}, '<leader>S', '<Plug>(leap-backward-to)') + vim.keymap.set({'n', 'x', 'o'}, '<C-s>', '<Plug>(leap-forward-till)') + vim.keymap.set({'n', 'x', 'o'}, '<C-S-s>', '<Plug>(leap-backward-till)') + end + }) end, config = { display = { |