nvim: Tweaks
This commit is contained in:
34
tree/.config/nvim/lua/theme.lua.tpl
Normal file
34
tree/.config/nvim/lua/theme.lua.tpl
Normal file
@ -0,0 +1,34 @@
|
||||
-- setup must be called before loading the colorscheme
|
||||
-- Default options:
|
||||
require("gruvbox").setup({
|
||||
terminal_colors = true, -- add neovim terminal colors
|
||||
undercurl = true,
|
||||
underline = true,
|
||||
bold = true,
|
||||
italic = {
|
||||
strings = true,
|
||||
emphasis = true,
|
||||
comments = true,
|
||||
operators = false,
|
||||
folds = true,
|
||||
},
|
||||
strikethrough = true,
|
||||
invert_selection = false,
|
||||
invert_signs = false,
|
||||
invert_tabline = false,
|
||||
invert_intend_guides = false,
|
||||
inverse = true, -- invert background for search, diffs, statuslines and errors
|
||||
contrast = "", -- can be "hard", "soft" or empty string
|
||||
palette_overrides = {},
|
||||
overrides = {},
|
||||
dim_inactive = false,
|
||||
transparent_mode = false,
|
||||
})
|
||||
|
||||
{% if light %}
|
||||
vim.o.background = "light"
|
||||
{% else %}
|
||||
vim.o.background = "dark"
|
||||
{% end %}
|
||||
|
||||
vim.cmd([[colorscheme gruvbox]])
|
||||
Reference in New Issue
Block a user