feat: flash.nvim

This commit is contained in:
punkfairie 2024-12-01 11:48:43 -08:00
parent 5f9d587780
commit 82f8d85020
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 49 additions and 0 deletions

View file

@ -52,6 +52,7 @@ with final.pkgs.lib; let
# Editor
neo-tree-nvim
grug-far-nvim
flash-nvim
];
extraPackages = with pkgs; [

View file

@ -0,0 +1,47 @@
return {
'flash.nvim',
event = 'DeferredUIEnter',
keys = {
{
's',
function()
require('flash').jump()
end,
mode = { 'n', 'x', 'o' },
desc = 'Flash',
},
{
'S',
function()
require('flash').treesitter()
end,
mode = { 'n', 'x', 'o' },
desc = 'Flash (treesitter)',
},
{
'r',
function()
require('flash').remote()
end,
desc = 'Remote flash',
},
{
'R',
function()
require('flash').treesitter_search()
end,
mode = { 'x', 'o' },
desc = 'Treesitter search',
},
{
'<C-s>',
function()
require('flash').toggle()
end,
'Toggle flash search',
},
},
after = function()
require('flash').setup({})
end,
}

View file

@ -1,6 +1,7 @@
local req = MarleyVim.local_require('plugins.editor')
return {
req('flash-nvim'),
req('grug-far-nvim'),
req('neo-tree-nvim'),
}