mirror of
https://github.com/Xevion/astronvim_config.git
synced 2025-12-07 22:06:23 -06:00
Commit save file mapping (uncomment)
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
-- automatically pick-up stored data by this setting.)
|
-- automatically pick-up stored data by this setting.)
|
||||||
return {
|
return {
|
||||||
-- first key is the mode
|
-- first key is the mode
|
||||||
|
i = {
|
||||||
|
["<C-s>"] = { ":w!<cr>", desc = "Save File" },
|
||||||
|
},
|
||||||
n = {
|
n = {
|
||||||
-- second key is the lefthand side of the map
|
-- second key is the lefthand side of the map
|
||||||
|
|
||||||
@@ -31,7 +34,7 @@ return {
|
|||||||
-- this is useful for naming menus
|
-- this is useful for naming menus
|
||||||
["<leader>b"] = { name = "Buffers" },
|
["<leader>b"] = { name = "Buffers" },
|
||||||
-- quick save
|
-- quick save
|
||||||
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
-- setting a mapping to false will disable it
|
-- setting a mapping to false will disable it
|
||||||
|
|||||||
Reference in New Issue
Block a user