dotfiles/.config/nvim/lua/init/theme.lua

51 lines
1.4 KiB
Lua
Raw Normal View History

2026-08-06 23:56:13 +02:00
-- Install theme plugins
vim.pack.add {
{ src = 'https://github.com/rebelot/kanagawa.nvim', name = 'kanagawa' },
-- { src = 'https://github.com/rose-pine/neovim', name = 'rose-pine' },
-- { src = 'https://github.com/nickkadutskyi/jb.nvim', name = 'jetbrains-theme' },
}
2026-09-01 19:48:28 +02:00
local dim_inactive_windows = true
2026-08-06 23:56:13 +02:00
-- Initialize and customize themes
require('kanagawa').setup {
-- Compile colorscheme for fast startup times.
-- Note: When changing the theme, make sure to run `:KanagawaCompile` afterwards!
compile = true,
-- Dim inactive windows
2026-09-01 19:48:28 +02:00
dimInactive = dim_inactive_windows,
2026-08-06 23:56:13 +02:00
-- Customize colors
colors = {
theme = {
all = {
ui = {
-- Disable background of gutter (line numbers etc.)
bg_gutter = 'none',
},
},
},
},
2026-09-01 19:48:28 +02:00
-- Add or modify highlight groups
overrides = function(colors)
local theme = colors.theme
return {
-- Make window separator more visible
WinSeparator = {
fg = theme.ui.bg_p1, -- default: bg_m3
bg = dim_inactive_windows and theme.ui.bg_dim or "NONE", -- default
},
}
end,
2026-08-06 23:56:13 +02:00
}
--require('rose-pine').setup {}
--require('jb').setup {}
-- Enable theme
vim.cmd.colorscheme('kanagawa')
--vim.cmd.colorscheme('rose-pine')
--vim.cmd.colorscheme('jb')