Skip to content

Commit

Permalink
Added leap
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Mar 26, 2024
1 parent 286f1e5 commit 9906c12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dot/neovim/lua/ide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,11 @@ vim.keymap.set({ "n", "x" }, "<leader>ri", function() require('refactoring').ref
vim.keymap.set("n", "<leader>rb", function() require('refactoring').refactor('Extract Block') end, {desc="Extract block"})
vim.keymap.set("n", "<leader>rbf", function() require('refactoring').refactor('Extract Block To File') end, {desc="Extract block to file"})
-- Extract block supports only normal mode


-- Leap
require('leap').create_default_mappings()
-- Define equivalence classes for brackets and quotes, in addition to
-- the default whitespace group.
require('leap').opts.equivalence_classes = { ' \t\r\n', '([{', ')]}', '\'"`' }
require('leap').opts.labels = 'sfnjklhodweimbuyvrgtaqpcxz'
5 changes: 4 additions & 1 deletion dot/neovim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ return require('packer').startup(function(use)

use 'nvim-treesitter/nvim-treesitter-context' -- Sticky scrolling

-- control
use 'ggandor/leap.nvim'

-- Svelte development
use 'joosepalviste/nvim-ts-context-commentstring' -- for context comment
use 'joosepalviste/nvim-ts-contextcommentstring' -- for context comment
use 'evanleck/vim-svelte'
use 'pangloss/vim-javascript'
use 'herringtondarkholme/yats.vim'
Expand Down

0 comments on commit 9906c12

Please sign in to comment.