diff --git a/lazy-lock.json b/lazy-lock.json index 85e52be..2c62a6d 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -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" }, diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index a1ad03e..dbe5fca 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -11,3 +11,6 @@ vim.keymap.set("n", "", "zz") vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") + +-- Prcognition +vim.keymap.set("n", "tp", require("precognition").toggle) diff --git a/lua/plugins/precognition.lua b/lua/plugins/precognition.lua index e667d1c..035573f 100644 --- a/lua/plugins/precognition.lua +++ b/lua/plugins/precognition.lua @@ -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 = "'" }, }, }, }