-
-
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)!: separate flit.nvim from leap.nvim (#281)
if you use flit you have to add it separately
- Loading branch information
Showing
4 changed files
with
41 additions
and
32 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,5 @@ | ||
# flit.nvim | ||
|
||
**Repository:** https://github.com/ggandor/flit.nvim | ||
|
||
f/F/t/T motions on steroids, building on the Leap interface. |
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,20 @@ | ||
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", | ||
dependencies = { | ||
"tpope/vim-repeat", | ||
}, | ||
}, | ||
}, | ||
} |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# flit.nvim | ||
# leap.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 |
---|---|---|
@@ -1,32 +1,18 @@ | ||
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, | ||
dependencies = { | ||
"tpope/vim-repeat", | ||
}, | ||
}, | ||
"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, | ||
dependencies = { | ||
"tpope/vim-repeat", | ||
}, | ||
} |