From 33707edbeb8a7227e529e51436b9545cd86d8c2f Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 16 Sep 2025 10:24:20 -0400 Subject: neovim: fixed markdown, zoxide, completion, and auto-session --- pkgs/custom-neovim/config/lua/keymaps.lua | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'pkgs/custom-neovim/config/lua/keymaps.lua') diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua index fd3bb15..6831834 100644 --- a/pkgs/custom-neovim/config/lua/keymaps.lua +++ b/pkgs/custom-neovim/config/lua/keymaps.lua @@ -39,9 +39,12 @@ mapkey("n", "tc", "Close current tab", ":tabclose") mapkey("n", "w", "Manage sessions", "") mapkey("n", "ww", "Open a session", ":Autosession search", "mini.pick") mapkey("n", "wd", "Delete a session", ":Autosession delete", "mini.pick") +mapkey("n", "wr", "Restore last session", ":SessionRestore") +mapkey("n", "wp", "Purge orphaned sessions", ":SessionPurgeOrphaned") +mapkey("n", "ws", "Save session", ":SessionSave") -- Terminal -mapkey("n", "c", "Open terminal", ":botright terminal") +mapkey("n", "n", "Open terminal", ":botright terminal") -- Markview mapkey("n", "v", "Toggle markview", ":Markview", "markview.nvim") @@ -49,9 +52,17 @@ mapkey("n", "v", "Toggle markview", ":Markview", "markview.nvim") -- Toggle spellcheck mapkey("n", "zq", "Toggle spellcheck", ":set spell!") --- Really delete -mapkey({"n", "v"}, "d", "Really delete", [["_d]]) -mapkey({"n", "v"}, "x", "Really delete character", [["_x]]) +-- Spelling suggestions +mapkey("n", "z=", "Pick spelling suggestions", ":Pick spellsuggest") + +-- Do operations without yanking +mapkey({"n", "v"}, "d", "Fully delete", [["_d]]) +mapkey({"n", "v"}, "D", "Fully delete line", [["_D]]) +mapkey({"n", "v"}, "x", "Fully delete character", [["_x]]) +mapkey({"n", "v"}, "X", "Fully delete previous character", [["_X]]) +mapkey({"n", "v"}, "c", "Fully change", [["_c]]) +mapkey({"n", "v"}, "C", "Fully change line", [["_C]]) +mapkey({"v"}, "p", "Fully put", [[P]]) -- Paste on newline mapkey("n", "p", "Paste on newline", ":pu") @@ -59,8 +70,8 @@ mapkey("n", "p", "Paste on newline", ":pu") -- Visual Movement Keys mapkey({"n", "v"}, "j", "Go down visually", "gj") mapkey({"n", "v"}, "k", "Go up visually", "gk") -mapkey({"n", "v"}, "", "Go down visually", "gj") -mapkey({"n", "v"}, "", "Go up visually", "gk") +mapkey({"n", "v"}, "", "Go down visually", "g") +mapkey({"n", "v"}, "", "Go up visually", "g") -- Falling key mapkey("n", "u", "Make it rain", ":CellularAutomaton make_it_rain", "cellular-automaton.nvim") -- cgit v1.2.3