Skip to content

Commit

Permalink
feat(core): use the lua API to set options (#1292)
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy authored Jun 17, 2024
1 parent 2fedc08 commit 9937d58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ local load_core = function()
require("core.pack")
require("keymap")

local colorscheme = settings.colorscheme
local background = settings.background
vim.api.nvim_command("set background=" .. background)
vim.api.nvim_command("colorscheme " .. colorscheme)
vim.api.nvim_set_option_value("background", settings.background, {})
vim.cmd.colorscheme(settings.colorscheme)
end

load_core()

0 comments on commit 9937d58

Please sign in to comment.