feat!: nvim-treesitter changes

This commit is contained in:
Michael Chris Lopez
2022-10-22 09:32:57 +08:00
parent 6455bdfa0e
commit bfb2e0d43a
17 changed files with 205 additions and 196 deletions

View File

@@ -1,7 +1,7 @@
local M = {}
local function make_specs(specs_name, ness)
local background = vim.opt.background:get()
local background = vim.o.background
package.loaded[specs_name] = nil
if ness == nil then
return require(specs_name)
@@ -26,7 +26,7 @@ local function make_env(colorscheme)
transform = require "zenbones.shipwright.transform",
}
vim.opt.background = colorscheme.background
vim.o.background = colorscheme.background
env.specs = make_specs(specs_name)
local ness = colorscheme.background == "light" and { "dim", "bright" } or { "stark", "warm" }
env["specs_" .. ness[1]] = make_specs(specs_name, ness[1])