feat: more editor plugins
This commit is contained in:
parent
a266489958
commit
a38042d73e
13 changed files with 151 additions and 35 deletions
17
lua/custom/plugins/leap.lua
Normal file
17
lua/custom/plugins/leap.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"ggandor/leap.nvim",
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, desc = "Leap forward to" },
|
||||
{ "S", mode = { "n", "x", "o" }, desc = "Leap backward to" },
|
||||
{ "gs", mode = { "n", "x", "o" }, desc = "Leap from windows" },
|
||||
},
|
||||
config = function(_, opts)
|
||||
local leap = require("leap")
|
||||
for k, v in pairs(opts) do
|
||||
leap.opts[k] = v
|
||||
end
|
||||
leap.add_default_mappings(true)
|
||||
vim.keymap.del({ "x", "o" }, "x")
|
||||
vim.keymap.del({ "x", "o" }, "X")
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue