Skip to content

Commit

Permalink
docs: use nvim_set_option_value in the readme (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbvaughan authored Jul 29, 2024
1 parent 2b8c938 commit 70392f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand All @@ -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,
},
Expand Down

0 comments on commit 70392f1

Please sign in to comment.