precognition

This commit is contained in:
Thomas Smallwood 2025-11-24 10:22:57 +01:00
parent e162fa9f49
commit 78786ce1aa
No known key found for this signature in database
3 changed files with 34 additions and 6 deletions

View file

@ -10,7 +10,7 @@
"grug-far.nvim": { "branch": "main", "commit": "b58b2d65863f4ebad88b10a1ddd519e5380466e0" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
"lualine.nvim": { "branch": "master", "commit": "e5459241bde5949305b9583bb4eedf322a2a8e7c" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "7d527c76c43f46294de9c19d39c5a86317809b4b" },
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" },
"mini.ai": { "branch": "main", "commit": "bfb26d9072670c3aaefab0f53024b2f3729c8083" },

View file

@ -11,3 +11,6 @@ vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")
-- Prcognition
vim.keymap.set("n", "<leader>tp", require("precognition").toggle)

View file

@ -1,4 +1,7 @@
return {
-- Other options
-- nvim-spider
-- leap.nvim
"tris203/precognition.nvim",
event = "VeryLazy",
opts = {
@ -9,20 +12,42 @@ return {
Caret = { text = "^", prio = 2 },
Dollar = { text = "$", prio = 1 },
MatchingPair = { text = "%", prio = 5 },
Zero = { text = "0", prio = 1 },
w = { text = "w", prio = 10 },
b = { text = "b", prio = 9 },
e = { text = "e", prio = 8 },
ge = { text = "ge", prio = 7 },
W = { text = "W", prio = 7 },
B = { text = "B", prio = 6 },
E = { text = "E", prio = 5 },
gE = { text = "gE", prio = 4 },
f = { text = "f", prio = 10 },
F = { text = "F", prio = 9 },
t = { text = "t", prio = 8 },
T = { text = "T", prio = 7 },
["("] = { text = "(", prio = 3 },
[")"] = { text = ")", prio = 3 },
},
gutterHints = {
-- prio is not currently used for gutter hints
G = { text = "G", prio = 1 },
gg = { text = "gg", prio = 1 },
PrevParagraph = { text = "{", prio = 1 },
NextParagraph = { text = "}", prio = 1 },
G = { text = "G" },
gg = { text = "gg" },
PrevParagraph = { text = "{" },
NextParagraph = { text = "}" },
Top = { text = "H" },
Middle = { text = "M" },
Bottom = { text = "L" },
SearchForward = { text = "/" },
SearchBackward = { text = "?" },
NextMatch = { text = "n" },
PrevMatch = { text = "N" },
MarkJump = { text = "'" },
},
},
}