diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index d39effc..52a4fc2 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -32,7 +32,8 @@ keymap.set("n", "j", "lprevzz") keymap.set("n", "rr", [[:%s/\<\>//gI]], { desc = "replace current word" }) keymap.set("n", "x", "!chmod +x %", { silent = true, desc = "chmod +x current file" }) -keymap.set("n", "q", "!go run %", { desc = "go run current file" }) +keymap.set("n", "cm", "make", { desc = "run make command" }) +keymap.set("n", "cc", "!gcc -o %< % && %< ", { desc = "compile current file and execute it" }) keymap.set("t", "", [[]], { desc = "exit insert mode on builtin terminal" }) diff --git a/lua/jabuxas/set.lua b/lua/jabuxas/set.lua index 86f5fe0..8b6e2f3 100644 --- a/lua/jabuxas/set.lua +++ b/lua/jabuxas/set.lua @@ -35,9 +35,6 @@ autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolu -- disable bar any% vim.opt.laststatus = 0 -vim.o.noshowcmd = true -vim.o.noruler = true -vim.o.noshowmode = true autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" }, {