qgml movement finally, relearn h undo l openline
This commit is contained in:
@@ -1,3 +1,17 @@
|
|||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- 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
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
--
|
||||||
|
|
||||||
|
-- movement keys (work in normal, visual, and operator‑pending modes)
|
||||||
|
vim.keymap.set({ 'n', 'v', 'o' }, 'a', '<Left>', { desc = 'Move left' })
|
||||||
|
vim.keymap.set({ 'n', 'v', 'o' }, 'e', '<Down>', { desc = 'Move down' })
|
||||||
|
vim.keymap.set({ 'n', 'v', 'o' }, 'u', '<Up>', { desc = 'Move up' })
|
||||||
|
vim.keymap.set({ 'n', 'v', 'o' }, 'o', '<Right>', { desc = 'Move right' })
|
||||||
|
|
||||||
|
-- reassign original commands to freed hjkl (normal mode only)
|
||||||
|
vim.keymap.set('n', 'h', '<Cmd>normal! u<CR>', { desc = 'Undo' })
|
||||||
|
vim.keymap.set('n', 'j', '<Cmd>normal! a<CR>', { desc = 'Append' })
|
||||||
|
vim.keymap.set('n', 'k', '<Cmd>normal! e<CR>', { desc = 'End of word' })
|
||||||
|
vim.keymap.set('n', 'l', '<Cmd>normal! o<CR>', { desc = 'Open line below' })
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return {
|
|||||||
-- ⚠️ must add this setting! ! !
|
-- ⚠️ must add this setting! ! !
|
||||||
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
||||||
or "make",
|
or "make",
|
||||||
|
-- build = "make BUILD_FROM_SOURCE=true",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
version = false, -- Never set this value to "*"! Never!
|
version = false, -- Never set this value to "*"! Never!
|
||||||
---@module 'avante'
|
---@module 'avante'
|
||||||
|
|||||||
Reference in New Issue
Block a user