vim.keymap.set("n", "mx", '!chmod +x "%"', { desc = "Mark the file as executable", buffer = true }) vim.keymap.set("i", "x", '!chmod +x "%"', { desc = "Mark the file as executable", buffer = true }) vim.keymap.set("n", "mX", '!chmod u+x "%"', { desc = "Mark the file as executable (current user only)", buffer = true }) vim.keymap.set("i", "X", '!chmod u+x "%"', { desc = "Mark the file as executable (current user only)", buffer = true })