diff --git a/mappings.lua b/mappings.lua index c593ba3..ac6b5f4 100644 --- a/mappings.lua +++ b/mappings.lua @@ -1,14 +1,12 @@ ---@type MappingsTable local M = { - n = { - [""] = "", - }, } M.disabled = { n = { ["h"] = "", [""] = "", + [""] = "", }, } @@ -66,8 +64,8 @@ M.general = { }, n = { --big move - [""] = { "", "big step down"}, - [""] = { "", "big step down"}, + [""] = { "", "big step down" }, + [""] = { "", "big step down" }, -- easy newline ["OO"] = { "O", "insert a line above", opts = { nowait = true } }, ["oo"] = { "o", "insert a line below", opts = { nowait = true } }, diff --git a/plugins.lua b/plugins.lua index 189419a..f4432c2 100644 --- a/plugins.lua +++ b/plugins.lua @@ -46,60 +46,10 @@ local plugins = { require "custom.configs.conform" 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", - -- stylua: ignore - keys = { - { 'gl', '(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' }, - { 'gL', '(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' }, - { 'wgl', '(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", - } + require("leap").create_default_mappings() end, }, }