nh: nix-helper

This commit is contained in:
js0ny 2025-11-17 15:21:09 +00:00
parent d12c5d5e4e
commit 8a266783a2
9 changed files with 52 additions and 3 deletions

View file

@ -0,0 +1,16 @@
vim.keymap.set("n", "<leader>mx", '<cmd>!chmod +x "%"<CR>', {
desc = "Mark the file as executable",
buffer = true
})
vim.keymap.set("i", "<C-m>x", '<cmd>!chmod +x "%"<CR>', {
desc = "Mark the file as executable",
buffer = true
})
vim.keymap.set("n", "<leader>mX", '<cmd>!chmod u+x "%"<CR>', {
desc = "Mark the file as executable (current user only)",
buffer = true
})
vim.keymap.set("i", "<C-m>X", '<cmd>!chmod u+x "%"<CR>', {
desc = "Mark the file as executable (current user only)",
buffer = true
})