From 48274c203731b208e45ee7d90bd9bc0679a8e17f Mon Sep 17 00:00:00 2001 From: pr0c3550r Date: Thu, 4 May 2023 20:02:22 +0200 Subject: [PATCH] Nvim: new mapping for making files unexecutable --- nvim/.config/nvim/lua/core/remap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/core/remap.lua b/nvim/.config/nvim/lua/core/remap.lua index d961990..2169833 100644 --- a/nvim/.config/nvim/lua/core/remap.lua +++ b/nvim/.config/nvim/lua/core/remap.lua @@ -43,5 +43,6 @@ vim.api.nvim_set_keymap("n", "p", "\"+p", {}) -- opening explorer vim.api.nvim_set_keymap("n", "N", ":20Lexplore", {}) --- make current file executable +-- make current file (un)executable vim.api.nvim_set_keymap("n", "x", ":exec 'w' !chmod +x %", { silent = true }) +vim.api.nvim_set_keymap("n", "X", ":exec 'w' !chmod -x %", { silent = true })