From 3667d9215ad35041c233fdfe11efabcf2aa55508 Mon Sep 17 00:00:00 2001 From: James Vaughan Date: Mon, 29 Jul 2024 09:56:37 -0700 Subject: [PATCH] Use nvim_set_option_value in the readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 778b1d6..3a7eff7 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,11 @@ local auto_dark_mode = require('auto-dark-mode') auto_dark_mode.setup({ update_interval = 1000, set_dark_mode = function() - vim.api.nvim_set_option('background', 'dark') + vim.api.nvim_set_option_value('background', 'dark', {}) vim.cmd('colorscheme gruvbox') end, set_light_mode = function() - vim.api.nvim_set_option('background', 'light') + vim.api.nvim_set_option_value('background', 'light', {}) vim.cmd('colorscheme gruvbox') end, }) @@ -81,11 +81,11 @@ return { opts = { update_interval = 1000, set_dark_mode = function() - vim.api.nvim_set_option("background", "dark") + vim.api.nvim_set_option_value("background", "dark", {}) vim.cmd("colorscheme gruvbox") end, set_light_mode = function() - vim.api.nvim_set_option("background", "light") + vim.api.nvim_set_option_value("background", "light", {}) vim.cmd("colorscheme gruvbox") end, },