Skip to content

Commit

Permalink
snipe identation
Browse files Browse the repository at this point in the history
  • Loading branch information
lipeeeee committed Aug 3, 2024
1 parent fe5ce98 commit 2a8853c
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions lua/lipe/plugins/core/snipe.lua
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
}

0 comments on commit 2a8853c

Please sign in to comment.