From dc4f1d27331c7ca907baa688261c995afeed4a28 Mon Sep 17 00:00:00 2001 From: Dario48true Date: Sun, 29 Oct 2023 16:42:38 +0100 Subject: [PATCH] more keymaps --- lua/Dario48/options.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/Dario48/options.lua b/lua/Dario48/options.lua index 75d5bb5..da39c2b 100644 --- a/lua/Dario48/options.lua +++ b/lua/Dario48/options.lua @@ -1,11 +1,18 @@ vim.cmd("nnoremap ") - vim.g.mapleader = ' ' vim.cmd("set tabstop=4") vim.cmd("set softtabstop=0") vim.cmd("set shiftwidth=0") +vim.keymap.set("n", "+x", ":!chmod +x %", {silent = true}) +vim.keymap.set("n", "+r", ":!chmod +r %", {silent = true}) +vim.keymap.set("n", "+w", ":!chmod +w %", {silent = true}) + +vim.keymap.set("n", "-x", ":!chmod -x %", {silent = true}) +vim.keymap.set("n", "-r", ":!chmod -r %", {silent = true}) +vim.keymap.set("n", "-w", ":!chmod -w %", {silent = true}) + vim.opt.nu = true vim.opt.termguicolors = true