Replace hop with leap
This commit is contained in:
parent
73e9777a2b
commit
f64a6c4297
@ -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
|
||||||
|
@ -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})
|
|
||||||
|
|
@ -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',
|
||||||
@ -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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user