Skip to content

Commit

Permalink
neovim: update colorscheme setup
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Sep 7, 2022
1 parent d8a5c48 commit 89753b3
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions nvim/lua/user/colorscheme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,28 @@ local M = {}

local name = 'tokyonight'

local setup_tokyonight = function()
local status_ok, tokyonight = pcall(require, 'tokyonight')
if not status_ok then
return
end

tokyonight.setup({
style = 'storm',
transparent = false,
styles = {
sidebars = 'transparent',
floats = 'transparent',
},
lualine_bold = true,
})
end

local setup = function()
vim.opt.background = 'dark'
vim.g.tokyonight_dark_sidebar = false
vim.g.tokyonight_dark_float = false
vim.g.tokyonight_lualine_bold = true
if name == 'tokyonight' then
setup_tokyonight()
end
pcall(vim.cmd, 'colorscheme ' .. name)
end

Expand Down

0 comments on commit 89753b3

Please sign in to comment.