diff --git a/config/nvim/lua/keymap.lua b/config/nvim/lua/keymap.lua index bea7ae5..ad01663 100644 --- a/config/nvim/lua/keymap.lua +++ b/config/nvim/lua/keymap.lua @@ -5,6 +5,10 @@ local map = vim.keymap.set map("i", "jk", "noh", { silent = true }) map({"n", "x"}, "", "noh", { silent = true }) +-- Append and Prepend Newline +map("n", "[", "call append(line('.')-1, '')", { desc = "Prepend Newline"}) +map("n", "]", "call append(line('.'), '')", { desc = "Append Newline"}) + ---- -- Movements ---- @@ -37,6 +41,7 @@ map("n", "g", "lua _lazygit_toggle()", {noremap = true, silent -- Undotree map("n", "fu", "Telescope undo") + ---- -- Cool Macros ----