-
Most likely, there is some misconfiguration, but i can't find where it is. I'm trying to set up tokyonight as my colorscheme, but i doesn't applied without file:init.lua require('options')
---@diagnostic disable: undefined-global
local fn = vim.fn
local loader = vim.loader
local loop = vim.loop
local opt = vim.opt
---@diagnostic enable: undefined-global
local utils = require('utils')
loader.enable()
local lazypath = fn.stdpath('data') .. '/lazy/lazy.nvim'
if not loop.fs_stat(lazypath) then
fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath
})
end
opt.runtimepath:prepend(lazypath)
require('lazy').setup('plugins', {
install = {
colorscheme = { 'habamax', 'tokyonight' },
},
ui = {
border = 'rounded',
size = utils.defaultModalSize(),
},
diff = {
cmd = 'diffview.nvim',
},
})
require('filetypes')
require('keymaps') file: lua/plugins/tokyonight.lua return {
'folke/tokyonight.nvim',
priority = 9000,
lazy = false,
opts = {
style = 'night',
light_style = 'day',
transparent = true,
terminal_colors = true,
styles = {
comments = {
italic = true,
},
keywords = {
italic = true,
},
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
sidebars = 'transparent',
floats = 'transparent',
},
day_brightness = 0.3,
dim_inactive = false,
lualine_bold = true,
cache = true,
},
} With this config, neither tokyonight nor habamax are applied as colorscheme, but if i change return {
'folke/tokyonight.nvim',
priority = 9000,
lazy = false,
config = function()
local tokyonight = require('tokyonight')
tokyonight.setup {
style = 'night',
light_style = 'day',
transparent = true,
terminal_colors = true,
styles = {
comments = {
italic = true,
},
keywords = {
italic = true,
},
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
sidebars = 'transparent',
floats = 'transparent',
},
day_brightness = 0.3,
dim_inactive = false,
lualine_bold = true,
cache = false,
}
tokyonight.load()
end
} tokyonight colorscheme is loaded fine. I don't get, how this |
Beta Was this translation helpful? Give feedback.
Answered by
tony-sol
Jul 16, 2025
Replies: 1 comment
-
Guess, i found a solution:
install = {
colorscheme = { 'habamax', 'tokyonight' },
},
local cmd = vim.cmd
cmd.coloscheme('tokyonight') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tony-sol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guess, i found a solution:
lazy
set up in init.lualazy
set up in init.lua