From: Samir Benmendil Date: Sun, 7 Apr 2024 00:27:36 +0000 (+0100) Subject: nvim: add note to keymaps that upstream keymaps are disabled X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/28d0b9c4149865ed24e125ecf5a75c114aff9c85?ds=inline nvim: add note to keymaps that upstream keymaps are disabled --- diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 56035d6..80a976a 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -1,4 +1,6 @@ -- Keymaps are automatically loaded on the VeryLazy event +-- NOTE: Default LazyVim keys are not loaded automatically, review upstream keymas occasionnaly. +-- ~/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/keymaps.lua local Util = require("lazyvim.util") @@ -12,6 +14,7 @@ vim.keymap.set("n", "", "vertical resize +2", { desc = "Increa -- Move Lines vim.keymap.set("n", "", "m .+1==", { desc = "Move down" }) vim.keymap.set("n", "", "m .-2==", { desc = "Move up" }) +-- NOTE: this triggers with when I'm too quick at doing "go to normal mode then move line" vim.keymap.set("i", "", "m .+1==gi", { desc = "Move down" }) vim.keymap.set("i", "", "m .-2==gi", { desc = "Move up" }) vim.keymap.set("v", "", ":m '>+1gv=gv", { desc = "Move down" })