Hermanverschooten / herman_colorscheme.nvim

Color Scheme for nvim/lvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

herman_colorscheme.nvim

herman_colorscheme.nvim (former codedark.nvim) a Lua port of vim-code-dark colorscheme for neovim with herman_colorscheme light and dark theme

Dark

TypeScript and NvimTree

Light

TypeScript and NvimTree

#️ Supported Plugins

⬇️ Installation

Install via package manager

-- Using Packer:
use 'Hermanverschooten/herman_colorscheme.nvim'
" Using Vim-Plug:
Plug 'Hermanverschooten/herman_colorscheme.nvim'

🚀 Usage

-- Lua:
-- For dark theme
vim.g.herman_colorscheme_style = "dark"
-- For light theme
vim.g.herman_colorscheme_style = "light"
vim.cmd[[colorscheme herman_colorscheme]]
" Vim-Script:
" For dark theme
let g:herman_colorscheme_style = "dark"
" For light theme
let g:herman_colorscheme_style = "light"
colorscheme herman_colorscheme

If you are using lualine, you can also enable the provided theme:

require('lualine').setup {
  options = {
    -- ... 
    theme = 'herman_colorscheme'
    -- ... 
  }
}'

nvim-bufferline.lua setup for exact match as screen shots

-- Buffer line setup
require'bufferline'.setup{
	options = {
		indicator_icon = ' ',
    	buffer_close_icon = '',
    	modified_icon = '',
    	close_icon = '',
		close_command = "Bdelete %d",
		right_mouse_command = "Bdelete! %d",
		left_trunc_marker = '',
    	right_trunc_marker = '',
		offsets = {{filetype = "NvimTree", text = "EXPLORER", text_align = "center"}},
		show_tab_indicators = true,
		show_close_icon = false
	},
	highlights = {
		fill = {
			guifg = {attribute = "fg", highlight = "Normal"},
			guibg = {attribute = "bg", highlight = "StatusLineNC"},
		},
		background = {
			guifg = {attribute = "fg", highlight = "Normal"},
			guibg = {attribute = "bg", highlight = "StatusLine"}
		},
		buffer_visible = {
			gui = "",
            guifg = {attribute = "fg", highlight="Normal"},
            guibg = {attribute = "bg", highlight = "Normal"}
		},
		buffer_selected = {
			gui = "",
            guifg = {attribute = "fg", highlight="Normal"},
            guibg = {attribute = "bg", highlight = "Normal"}
		},
		separator = {
			guifg = {attribute = "bg", highlight = "Normal"},
			guibg = {attribute = "bg", highlight = "StatusLine"},
		},
		separator_selected = {
            guifg = {attribute = "fg", highlight="Special"},
            guibg = {attribute = "bg", highlight = "Normal"}
		},
		separator_visible = {
			guifg = {attribute = "fg", highlight = "Normal"},
			guibg = {attribute = "bg", highlight = "StatusLineNC"},
		},
		close_button = {
			guifg = {attribute = "fg", highlight = "Normal"},
			guibg = {attribute = "bg", highlight = "StatusLine"}
		},
		close_button_selected = {
            guifg = {attribute = "fg", highlight="normal"},
            guibg = {attribute = "bg", highlight = "normal"}
		},
		close_button_visible = {
            guifg = {attribute = "fg", highlight="normal"},
            guibg = {attribute = "bg", highlight = "normal"}
		},

	}
}

Switching theme

:lua require('herman_colorscheme').change_style("light") 
:lua require('herman_colorscheme').change_style("dark") 

About

Color Scheme for nvim/lvim

License:MIT License


Languages

Language:Lua 99.7%Language:Vim Script 0.3%