-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(motion): add leap/flit.nvim plugins
- Loading branch information
1 parent
c0b272d
commit cdc2107
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# flit.nvim | ||
|
||
**Repository:** https://github.com/ggandor/leap.nvim | ||
|
||
:kangaroo: Neovim's answer to the mouse | ||
|
||
This also includes [flit.nvim](https://github.com/ggandor/flit.nvim). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
return { | ||
{ | ||
"ggandor/flit.nvim", | ||
keys = function() | ||
---@type LazyKeys[] | ||
local ret = {} | ||
for _, key in ipairs { "f", "F", "t", "T" } do | ||
ret[#ret + 1] = { key, mode = { "n", "x", "o" }, desc = key } | ||
end | ||
return ret | ||
end, | ||
opts = { labeled_modes = "nx" }, | ||
dependencies = { | ||
"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) | ||
end, | ||
}, | ||
}, | ||
} |