summaryrefslogtreecommitdiff
path: root/lua/config/map.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/map.lua')
-rw-r--r--lua/config/map.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/config/map.lua b/lua/config/map.lua
index 30a96c8..61bb952 100644
--- a/lua/config/map.lua
+++ b/lua/config/map.lua
@@ -62,6 +62,7 @@ vim.api.nvim_create_user_command("Hide", function()
end, {})
-- write
+map("n", " x", "!cx %", { desc = "Toggle file as executable" })
map("n", " w", "<cmd>write<cr>", { noremap = true })
map("n", " W", "<cmd>write!<cr>", { noremap = true })
map("n", " e", "<cmd>edit<cr>", { noremap = true })