diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 6e7578a..8249e69 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -6,7 +6,7 @@ local max_height = vim.o.lines local max_width = vim.o.columns local fullscreen_inset = 2 -function toggle_background() +function ToggleBackground() if vim.opt.background:get() == "dark" then vim.opt.background = "light" else @@ -52,7 +52,7 @@ end vim.keymap.set( "n", "", - "lua toggle_background()", + "lua ToggleBackground()", { desc = "Switch between dark and light themes", noremap = true } )