Home

Awesome

<img src="https://raw.githubusercontent.com/saurabhdaware/vscode-calvera-dark/main/images/milky-way-icon.png" width="40"> Calvera Dark.nvim

Calvera Dark

Installation

Install via your favorite package manager:

" If you are using Vim-Plug
Plug 'yashguptaz/calvera-dark.nvim'
-- If you are using Packer
use 'yashguptaz/calvera-dark.nvim'

Requirements: Neovim 0.5

🌌 Usage

Enable the color scheme:

"Vim-Script:
-- Optional Settings 
let g:calvera_italic_comments = 1
let g:calvera_italic_keywords = 1
let g:calvera_italic_functions = 1
let g:calvera_contrast = 1

-- Required
colorscheme calvera
--Lua:

-- Optional Example Configuration
vim.g.calvera_italic_keywords = false
vim.g.calvera_borders = true
vim.g.calvera_contrast = true
vim.g.calvera_hide_eob = true
vim.g.calvera_custom_colors = {contrast = "#0f111a"}

-- Required Setting
require('calvera').set()

For more optional settings see the Options Section Note: The order matters, make sure to place the optional configuration above the initialization.

Info

Calvera Dark is a modern and blazing fast Neovim theme.

A port of Calvera Dark colorscheme for Neovim written in Lua.

✨ Features

To enable the calvera-nvim theme for Lualine, simply specify it in your lualine settings: ( make sure to set the theme to 'calvera-nvim', as 'calvera' already exists built in to lualine)

require('lualine').setup {
  options = {
    -- ... your lualine config
    theme = 'calvera-nvim'
    -- ... your lualine config
  }
}

Options

OptionDefaultDescription
calvera_contrasttrueMake sidebars and popup menus like nvim-tree and telescope have a different background
calvera_lighter_contrastfalseIncrease the contrast for the 'lighter' variant of the theme
calvera_italic_commentsfalseMake comments italic
calvera_italic_keywordsfalseMake keywords like if, for, while etc. italic
calvera_italic_functionsfalseMake function calls and names italic
calvera_italic_variablesfalseMake variable names and identifiers italic
calvera_bordersfalseEnable the border between verticaly split windows visable
calvera_disable_backgroundfalseDisable the setting of background color so that NeoVim can use your terminal background
calvera_hide_eobfalseHide the end of buffer lines ( ~ )
calvera_variable_color#717CB4Set a custom color for variables and fields
calvera_custom_colors{}Override the default colors and use your own
calvera_transparent_bgfalseTransparent Background
-- Example config in lua
vim.g.calvera_italic_comments = true
vim.g.calvera_italic_keywords = true
vim.g.calvera_italic_functions = true
vim.g.calvera_italic_variables = false
vim.g.calvera_contrast = true
vim.g.calvera_borders = false
vim.g.calvera_disable_background = false
vim.g.transparent_bg = true
--vim.g.calvera_custom_colors = { black = "#000000", bg = "#0F111A" }

-- Load the colorscheme
require('calvera').set()
" Example config in Vim-Script
let g:calvera_italic_comments = 1
let g:calvera_italic_keywords = 1
let g:calvera_italic_functions = 1
let g:calvera_contrast = 1

" Load the colorsheme
colorscheme calvera

Functions

Call the built in function for toggling buffer lines

"Vim-Script
:lua require('calvera.functions').toggle_eob()
"This command toggles the end of buffer lines

The command can also be mapped to a key to toggle the lines live

"Vim-Script:
nnoremap <leader>me :lua require('calvera.functions').toggle_eob()<CR>
--Lua:
vim.api.nvim_set_keymap('n', '<leader>me', [[<Cmd>lua require('calvera.functions').toggle_eob()<CR>]], { noremap = true, silent = true })

Development

In the plugin folder use the command below to open neovim

nvim --cmd "set rtp+=."

Source the dev/dev.lua file with the command :luafile % every time you make a change.

Acknowledgement

Material.nvim - Material.nvim was used as a starting point for this color theme.

VSCode Calvera Dark - VSCode Calvera Dark was used to pick the colors