⚙️ config(nvim): move some keymaps

This commit is contained in:
Sergio Laín 2024-02-08 11:14:13 +01:00
parent 4563c358fb
commit 2da357f367
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -20,7 +20,10 @@ map("n", "<leader>lr", function() vim.fn.system({ "xdg-open", "https://github.co
map("n", "<leader>le", "<cmd>LazyExtras<cr>", { desc = "Extras" }) map("n", "<leader>le", "<cmd>LazyExtras<cr>", { desc = "Extras" })
map("n", "<leader>lc", function() Util.news.changelog() end, { desc = "LazyVim Changelog" }) map("n", "<leader>lc", function() Util.news.changelog() end, { desc = "LazyVim Changelog" })
-- stylua: ignore end -- stylua: ignore end
-- Disable LazyVim bindings
map("n", "<leader>L", "<Nop>") map("n", "<leader>L", "<Nop>")
map("n", "<leader>fT", "<Nop>")
-- Identation -- Identation
map("n", "<", "<<", { desc = "Deindent" }) map("n", "<", "<<", { desc = "Deindent" })
@ -29,9 +32,6 @@ map("n", ">", ">>", { desc = "Indent" })
-- Save without formatting -- Save without formatting
map("n", "<A-s>", "<cmd>noautocmd w<CR>", { desc = "Save without formatting" }) map("n", "<A-s>", "<cmd>noautocmd w<CR>", { desc = "Save without formatting" })
-- Disable lazyterminal keymap
map("n", "<leader>fT", "<Nop>")
-- Cursor navigation on insert mode -- Cursor navigation on insert mode
map("i", "<M-h>", "<left>", { desc = "Move cursor left" }) map("i", "<M-h>", "<left>", { desc = "Move cursor left" })
map("i", "<M-l>", "<right>", { desc = "Move cursor left" }) map("i", "<M-l>", "<right>", { desc = "Move cursor left" })