Compare commits
No commits in common. "5baa1fffec9785e4c2ee200989976454ee3fadb9" and "7c63964eb68b102e8b6f69d176120fad26f12baa" have entirely different histories.
5baa1fffec
...
7c63964eb6
2 changed files with 57 additions and 5 deletions
|
@ -1,12 +1,14 @@
|
||||||
---@type MappingsTable
|
---@type MappingsTable
|
||||||
local M = {
|
local M = {
|
||||||
|
n = {
|
||||||
|
["<C-s>"] = "",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.disabled = {
|
M.disabled = {
|
||||||
n = {
|
n = {
|
||||||
["<leader>h"] = "",
|
["<leader>h"] = "",
|
||||||
["<C-a>"] = "",
|
["<C-a>"] = "",
|
||||||
["<C-s>"] = "",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
54
plugins.lua
54
plugins.lua
|
@ -47,9 +47,59 @@ local plugins = {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ggandor/leap.nvim",
|
-- NOTE: This is leap for selecting things!
|
||||||
|
"ggandor/flit.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("leap").create_default_mappings()
|
require("flit").setup {
|
||||||
|
keys = { f = "f", F = "F", t = "t", T = "T" },
|
||||||
|
-- A string like "nv", "nvo", "o", etc.
|
||||||
|
labeled_modes = "nvo",
|
||||||
|
multiline = true,
|
||||||
|
-- Like `leap`s similar argument (call-specific overrides).
|
||||||
|
-- E.g.: opts = { equivalence_classes = {} }
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ggandor/leap.nvim",
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ 'gl', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
|
||||||
|
{ 'gL', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
|
||||||
|
{ '<leader>wgl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local leap = require "leap"
|
||||||
|
leap.opts.case_sensitive = false
|
||||||
|
leap.opts.safe_labels = { "f", "n", "u", "t", "g", "ö", "w", "b", "m" }
|
||||||
|
leap.opts.labels = {
|
||||||
|
"a",
|
||||||
|
"s",
|
||||||
|
"f",
|
||||||
|
"n",
|
||||||
|
"j",
|
||||||
|
"k",
|
||||||
|
"r",
|
||||||
|
"e",
|
||||||
|
"r",
|
||||||
|
"m",
|
||||||
|
"ö",
|
||||||
|
"b",
|
||||||
|
"v",
|
||||||
|
"u",
|
||||||
|
"z",
|
||||||
|
"w",
|
||||||
|
"2",
|
||||||
|
"3",
|
||||||
|
"4",
|
||||||
|
"5",
|
||||||
|
"6",
|
||||||
|
"7",
|
||||||
|
"8",
|
||||||
|
"9",
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue