Replace hop with leap

This commit is contained in:
Jan Eitzinger 2023-02-25 06:42:21 +01:00
parent 73e9777a2b
commit f64a6c4297
3 changed files with 11 additions and 20 deletions

View File

@ -1,4 +1,5 @@
README.md README.md
.config/nvim/README.md
LICENSE LICENSE
{{ if eq .chezmoi.os "darwin" }} {{ if eq .chezmoi.os "darwin" }}
.muttrc .muttrc

View File

@ -1,14 +0,0 @@
local ok, hop = pcall(require, 'hop')
if not ok then
return
end
hop.setup {
quit_key = '<SPC>',
uppercase_labels = true
}
local map = vim.keymap.set
map('n', 'f', function() hop.hint_char1({current_line_only = true }) end, {remap=true})
map('n', '<leader>s', function() hop.hint_char2() end, {remap=true})

View File

@ -42,7 +42,7 @@ require "paq" {
"kylechui/nvim-surround"; "kylechui/nvim-surround";
"windwp/nvim-autopairs"; "windwp/nvim-autopairs";
"numToStr/Comment.nvim"; "numToStr/Comment.nvim";
{ "phaazon/hop.nvim", branch = "v2" }; "ggandor/leap.nvim";
-- Fuzzy search -- Fuzzy search
{ "nvim-telescope/telescope-fzf-native.nvim", run = "gmake" }; { "nvim-telescope/telescope-fzf-native.nvim", run = "gmake" };
@ -74,6 +74,8 @@ require('nvim-autopairs').setup({
fast_wrap = {}, fast_wrap = {},
}) })
require('leap').add_default_mappings()
require 'colorizer'.setup { require 'colorizer'.setup {
filetypes = { filetypes = {
'css', 'css',
@ -93,11 +95,11 @@ require('lualine').setup {
} }
require('indent_blankline').setup({ require('indent_blankline').setup({
char = '▏', char = '▏',
show_trailing_blankline_indent = false, show_trailing_blankline_indent = false,
show_first_indent_level = false, show_first_indent_level = false,
use_treesitter = true, use_treesitter = true,
show_current_context = false show_current_context = false
}) })
require('toggleterm').setup({ require('toggleterm').setup({
@ -288,3 +290,5 @@ map('n', '<leader>xx', '<cmd>TroubleToggle<cr>', { noremap = true, silent = true
map('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>', { noremap = true, silent = true }) map('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>', { noremap = true, silent = true })
map('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>', { noremap = true, silent = true }) map('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>', { noremap = true, silent = true })
map('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>', { noremap = true, silent = true }) map('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>', { noremap = true, silent = true })
map('n', '<leader>g', '<cmd>vertical rightbelow Git<cr>', { noremap = true, silent = true })