🗑️ remove(nvim): background keymap toggle because redundancy with lazyvim's one

This commit is contained in:
Sergio Laín 2024-01-23 01:06:48 +01:00
parent 7538ae0140
commit d8ea9d61a6
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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", "<leader>lc", function() Util.news.changelog() end, { desc = "LazyVim C
-- stylua: ignore end
map("n", "<leader>L", "<Nop>")
-- Toggle background
-- stylua: ignore
map("n", "<leader>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", "<leader>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" })