diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 1f583db..6c52850 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,2 +1,2 @@ [bumpversion] -current_version = 0.1.71 +current_version = 0.1.72 diff --git a/lunarvim/config.lua b/lunarvim/config.lua index e8f78fc..9ad170c 100644 --- a/lunarvim/config.lua +++ b/lunarvim/config.lua @@ -16,19 +16,10 @@ lvim.keys.normal_mode["R"] = { ------------------------------------------------------------------------------- -- key bindings (leader) ------------------------------------------------------------------------------- --- buffers -lvim.builtin.which_key.mappings["x"] = { "BDelete this", "Delete buffer" } - --- commands -lvim.builtin.which_key.vmappings["c"] = { "Telescope commands", "Commands" } - -- iswap lvim.builtin.which_key.mappings["i"] = { "ISwap", "ISwap" } lvim.builtin.which_key.mappings["iw"] = { "ISwapWith", "ISwapWith" } --- lazy -lvim.builtin.which_key.mappings["lu"] = { "Lazy update", "Lazy update" } - -- LSP lvim.builtin.which_key.mappings["lR"] = { "LspRestart", "Restart LSP" } @@ -59,10 +50,3 @@ lvim.builtin.which_key.mappings["sf"] = lvim.builtin.which_key.vmappings["sp"] = { "lua require('spectre').open_visual()", "Spectre" } lvim.builtin.which_key.vmappings["sf"] = { "lua require('spectre').open_file_search({select_word=true})", "Spectre (file)" } - -------------------------------------------------------------------------------- --- plugins -------------------------------------------------------------------------------- -lvim.builtin.dap.active = false -lvim.builtin.illuminate.active = false -lvim.builtin.lir.active = false diff --git a/nvim/lua/custom/plugins/iswap.lua b/nvim/lua/custom/plugins/iswap.lua index 582264e..9c3ee5a 100644 --- a/nvim/lua/custom/plugins/iswap.lua +++ b/nvim/lua/custom/plugins/iswap.lua @@ -1,4 +1,14 @@ return { "mizlan/iswap.nvim", + config = function() + local keymap_set = require("utilities").keymap_set + local iswap = require("iswap") + keymap_set("n", "is", function() + iswap.iswap() + end, "I[S]wap") + keymap_set("n", "iw", function() + iswap.iswap_with() + end, "ISwap [W]ith") + end, event = "VeryLazy", }