From d8ea9d61a62ad4bb8493429b89c9d983c52979fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 23 Jan 2024 01:06:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20remove(nvim):=20backgro?= =?UTF-8?q?und=20keymap=20toggle=20because=20redundancy=20with=20lazyvim's?= =?UTF-8?q?=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index bab79304..e338a0f1 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -2,6 +2,7 @@ -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here local map = vim.keymap.set +local o = vim.opt local Util = require("lazyvim.util") @@ -21,10 +22,6 @@ map("n", "lc", function() Util.news.changelog() end, { desc = "LazyVim C -- stylua: ignore end map("n", "L", "") --- Toggle background --- stylua: ignore -map("n", "uB", function() Util.toggle("background", false, { "light", "dark" }) end, { desc = "Toggle Background" }) - -- Identation map("n", "<", "<<", { desc = "Deindent" }) map("n", ">", ">>", { desc = "Indent" }) @@ -65,10 +62,10 @@ map("n", "N", "Nzzzv") -- Toggle statusline map("n", "uS", function() - if vim.opt.laststatus:get() == 0 then - vim.opt.laststatus = 3 + if o.laststatus:get() == 0 then + o.laststatus = 3 else - vim.opt.laststatus = 0 + o.laststatus = 0 end end, { desc = "Toggle Statusline" })