feat: moving s standard behavior and fix for relative number [custom-2024-10-10]

pull/96/head
Omar Mendoza 2024-10-10 00:20:33 -06:00
parent cb6349c8ae
commit 323f1a7057
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,5 @@
-- Keymaps are automatically loaded on the VeryLazy event -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here -- Add any additional keymaps here
vim.opt.relativenumber = false

View File

@ -0,0 +1,19 @@
return {
{
"folke/flash.nvim",
event = "VeryLazy",
vscode = true,
---@type Flash.Config
opts = {},
-- stylua: ignore
keys = {
{ "s", mode = { "n", "x", "o" }, false },
{ "S", mode = { "n", "x", "o" }, false },
{ "ss", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "SS", mode = { "n", "o", "x" }, 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" },
},
},
}