From fde42264735339686a2ee01c4b352ff752faa4ed Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 15 Jul 2024 06:51:23 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A0=20Implement=20Precognition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - (disabled by default) press 'zk' to toggle on/off - Shows available vim motions in gutter --- lua/config/keybinds.lua | 12 +++++++----- lua/plugins/editor.lua | 4 ++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index c40e2c8..510e1ad 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -25,11 +25,6 @@ vim.api.nvim_create_autocmd("ColorScheme", { -- --------------------------------- Keymaps ----------------------------------- local wk = require("which-key") wk.add({ - { - "E", - "lua require('neo-tree.command').execute({ toggle = true, dir = vim.uv.cwd() })", - desc = "Explorer (CWD)", - }, { "", ":ToggleTerm", @@ -198,6 +193,13 @@ wk.add({ return kit ~= nil end, }, + { + "zk", + rhs = function() + require("precognition").toggle() + end, + desc = "Toggle Precognition", + }, }) -- ---------------------------- Spell Correction ------------------------------- diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 349116c..d2d1e9a 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -88,4 +88,8 @@ return { vim.cmd(":set colorcolumn=120") end, }, + { + "tris203/precognition.nvim", + event = "VeryLazy", + }, }