adding flash
This commit is contained in:
parent
c6fbc7d9c6
commit
0e4908bc83
3 changed files with 19 additions and 2 deletions
|
|
@ -67,3 +67,6 @@ vim.opt.cursorline = true
|
|||
|
||||
-- Minimal number of screen lines to keep above and below the cursor.
|
||||
vim.opt.scrolloff = 10
|
||||
|
||||
-- Spell Checking
|
||||
vim.opt.spell = true
|
||||
|
|
|
|||
14
lua/custom/plugins/flash.lua
Normal file
14
lua/custom/plugins/flash.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
'folke/flash.nvim',
|
||||
event = 'VeryLazy',
|
||||
---@type Flash.Config
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue