From 714b6819227dce856ad44df37f325accd0d65c28 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 28 Apr 2026 07:51:41 -0700 Subject: [PATCH] qgml movement finally, relearn h undo l openline --- lua/config/keymaps.lua | 14 ++++++++++++++ lua/plugins/avante_202605.lua | 1 + 2 files changed, 15 insertions(+) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 2c134f7..520bd52 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -1,3 +1,17 @@ -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here +-- + +-- movement keys (work in normal, visual, and operator‑pending modes) +vim.keymap.set({ 'n', 'v', 'o' }, 'a', '', { desc = 'Move left' }) +vim.keymap.set({ 'n', 'v', 'o' }, 'e', '', { desc = 'Move down' }) +vim.keymap.set({ 'n', 'v', 'o' }, 'u', '', { desc = 'Move up' }) +vim.keymap.set({ 'n', 'v', 'o' }, 'o', '', { desc = 'Move right' }) + +-- reassign original commands to freed hjkl (normal mode only) +vim.keymap.set('n', 'h', 'normal! u', { desc = 'Undo' }) +vim.keymap.set('n', 'j', 'normal! a', { desc = 'Append' }) +vim.keymap.set('n', 'k', 'normal! e', { desc = 'End of word' }) +vim.keymap.set('n', 'l', 'normal! o', { desc = 'Open line below' }) + diff --git a/lua/plugins/avante_202605.lua b/lua/plugins/avante_202605.lua index 78bcc08..0364f3c 100644 --- a/lua/plugins/avante_202605.lua +++ b/lua/plugins/avante_202605.lua @@ -4,6 +4,7 @@ return { -- ⚠️ must add this setting! ! ! build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make", + -- build = "make BUILD_FROM_SOURCE=true", event = "VeryLazy", version = false, -- Never set this value to "*"! Never! ---@module 'avante'