🗑️ remove(nvim): background keymap toggle because redundancy with lazyvim's one
This commit is contained in:
parent
7538ae0140
commit
d8ea9d61a6
1 changed files with 4 additions and 7 deletions
|
@ -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" })
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue