-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
30 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 |
---|---|---|
@@ -1,36 +1,35 @@ | ||
return { | ||
"leath-dub/snipe.nvim", | ||
config = function () | ||
"leath-dub/snipe.nvim", | ||
config = function() | ||
local snipe = require("snipe") | ||
snipe.config = { | ||
ui = { | ||
max_width = -1, -- -1 means dynamic width | ||
-- Where to place the ui window | ||
-- Can be any of "topleft", "bottomleft", "topright", "bottomright", "center", "cursor" (sets under the current cursor pos) | ||
position = "topleft", | ||
}, | ||
hints = { | ||
-- Charaters to use for hints (NOTE: make sure they don't collide with the navigation keymaps) | ||
dictionary = "sadflewcmpghio", | ||
}, | ||
navigate = { | ||
-- When the list is too long it is split into pages | ||
-- `[next|prev]_page` options allow you to navigate | ||
-- this list | ||
next_page = "J", | ||
prev_page = "K", | ||
|
||
snipe.config = { | ||
ui = { | ||
max_width = -1, -- -1 means dynamic width | ||
-- Where to place the ui window | ||
-- Can be any of "topleft", "bottomleft", "topright", "bottomright", "center", "cursor" (sets under the current cursor pos) | ||
position = "topleft", | ||
}, | ||
hints = { | ||
-- Charaters to use for hints (NOTE: make sure they don't collide with the navigation keymaps) | ||
dictionary = "sadflewcmpghio", | ||
}, | ||
navigate = { | ||
-- When the list is too long it is split into pages | ||
-- `[next|prev]_page` options allow you to navigate | ||
-- this list | ||
next_page = "J", | ||
prev_page = "K", | ||
-- You can also just use normal navigation to go to the item you want | ||
-- this option just sets the keybind for selecting the item under the | ||
-- cursor | ||
under_cursor = "<cr>", | ||
|
||
-- You can also just use normal navigation to go to the item you want | ||
-- this option just sets the keybind for selecting the item under the | ||
-- cursor | ||
under_cursor = "<cr>", | ||
|
||
-- In case you changed your mind, provide a keybind that lets you | ||
-- cancel the snipe and close the window. | ||
cancel_snipe = "<esc>", | ||
}, | ||
} | ||
snipe.setup() | ||
-- In case you changed your mind, provide a keybind that lets you | ||
-- cancel the snipe and close the window. | ||
cancel_snipe = "<esc>", | ||
}, | ||
} | ||
snipe.setup() | ||
end | ||
} |