fix error with noshowcmd

This commit is contained in:
Lucas Barbieri 2024-06-11 20:34:45 -03:00
parent f94c94226f
commit c27eca194a
2 changed files with 2 additions and 4 deletions

View File

@ -32,7 +32,8 @@ keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
keymap.set("n", "<leader>rr", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = "replace current word" }) keymap.set("n", "<leader>rr", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = "replace current word" })
keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true, desc = "chmod +x current file" }) keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true, desc = "chmod +x current file" })
keymap.set("n", "<leader>q", "<cmd>!go run %<CR>", { desc = "go run current file" }) keymap.set("n", "<leader>cm", "<cmd>make<CR>", { desc = "run make command" })
keymap.set("n", "<leader>cc", "<cmd>!gcc -o %< % && %< <CR>", { desc = "compile current file and execute it" })
keymap.set("t", "<leader><Esc>", [[<C-\><C-n>]], { desc = "exit insert mode on builtin terminal" }) keymap.set("t", "<leader><Esc>", [[<C-\><C-n>]], { desc = "exit insert mode on builtin terminal" })

View File

@ -35,9 +35,6 @@ autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolu
-- disable bar any% -- disable bar any%
vim.opt.laststatus = 0 vim.opt.laststatus = 0
vim.o.noshowcmd = true
vim.o.noruler = true
vim.o.noshowmode = true
autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" }, autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" },
{ {