feat(nvim): save without formatting map can now be executed on insert mode

This commit is contained in:
Sergio Laín 2025-08-13 19:46:44 +02:00
parent 89569ed26c
commit c2a15979c2
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -32,7 +32,7 @@ map("n", "<", "<<", { desc = "Deindent" })
map("n", ">", ">>", { desc = "Indent" }) map("n", ">", ">>", { desc = "Indent" })
-- Save without formatting -- Save without formatting
map("n", "<A-s>", "<cmd>noautocmd w<CR>", { desc = "Save Without Formatting" }) map({ "n", "i" }, "<A-s>", "<cmd>noautocmd w<CR>", { desc = "Save Without Formatting" })
-- 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" })