Merge branch 'plugin-fix'

This commit is contained in:
Christoph J. Scherr 2024-01-19 19:00:00 +01:00
commit 5baa1fffec
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 4 additions and 56 deletions

View File

@ -1,14 +1,12 @@
---@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>"] = "",
}, },
} }
@ -66,8 +64,8 @@ M.general = {
}, },
n = { n = {
--big move --big move
["<A-k>"] = { "<C-u>", "big step down"}, ["<A-k>"] = { "<C-u>", "big step down" },
["<A-j>"] = { "<C-d>", "big step down"}, ["<A-j>"] = { "<C-d>", "big step down" },
-- easy newline -- easy newline
["OO"] = { "O<ESC>", "insert a line above", opts = { nowait = true } }, ["OO"] = { "O<ESC>", "insert a line above", opts = { nowait = true } },
["oo"] = { "o<ESC>", "insert a line below", opts = { nowait = true } }, ["oo"] = { "o<ESC>", "insert a line below", opts = { nowait = true } },

View File

@ -46,60 +46,10 @@ local plugins = {
require "custom.configs.conform" require "custom.configs.conform"
end, end,
}, },
{
-- NOTE: This is leap for selecting things!
"ggandor/flit.nvim",
config = function()
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", "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() config = function()
local leap = require "leap" require("leap").create_default_mappings()
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,
}, },
} }