mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-03 18:48:47 +00:00
chore(nvim): move flash.nvim keymap defs
This commit is contained in:
@@ -169,4 +169,13 @@ K.nl('qQ', function()
|
||||
end
|
||||
end, 'Force quit without saving')
|
||||
|
||||
-- ── Flash.nvim keymaps ──────────────────────────────────────────────
|
||||
local nxo = { 'n', 'x', 'o' }
|
||||
local fj = function() return require('flash').jump() end
|
||||
local ft = function() return require('flash').treesitter() end
|
||||
local fx = function() return require('flash').toggle() end
|
||||
K.d('zk', nxo, fj, { desc = 'Flash' })
|
||||
K.d('Zk', nxo, ft, { desc = 'Flash Treesitter' })
|
||||
K.d('<m-s>', 'c', fx, { desc = 'Toggle Flash Search' })
|
||||
|
||||
-- That concludes the keymaps section of the config.
|
||||
|
||||
@@ -91,25 +91,5 @@ return {
|
||||
'folke/flash.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
'zk',
|
||||
mode = { 'n', 'x', 'o' },
|
||||
function() require('flash').jump() end,
|
||||
desc = 'Flash',
|
||||
},
|
||||
{
|
||||
'Zk',
|
||||
mode = { 'n', 'x', 'o' },
|
||||
function() require('flash').treesitter() end,
|
||||
desc = 'Flash Treesitter',
|
||||
},
|
||||
{
|
||||
'<m-s>',
|
||||
mode = { 'c' },
|
||||
function() require('flash').toggle() end,
|
||||
desc = 'Toggle Flash Search',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user