• Stars
    star
    146
  • Rank 251,486 (Top 5 %)
  • Language
    Lua
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Calvera Dark Colorscheme for Neovim written in Lua with built-in support for native LSP, TreeSitter and many more plugins

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

Option Default Description
calvera_contrast true Make sidebars and popup menus like nvim-tree and telescope have a different background
calvera_lighter_contrast false Increase the contrast for the 'lighter' variant of the theme
calvera_italic_comments false Make comments italic
calvera_italic_keywords false Make keywords like if, for, while etc. italic
calvera_italic_functions false Make function calls and names italic
calvera_italic_variables false Make variable names and identifiers italic
calvera_borders false Enable the border between verticaly split windows visable
calvera_disable_background false Disable the setting of background color so that NeoVim can use your terminal background
calvera_hide_eob false Hide the end of buffer lines ( ~ )
calvera_variable_color #717CB4 Set a custom color for variables and fields
calvera_custom_colors {} Override the default colors and use your own
calvera_transparent_bg false Transparent 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

  • Toggle the end of buffer lines ( ~ )

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

More Repositories

1

tell-about

A CLI Tool that help you know about npm pacakges right in the command line.
JavaScript
25
star
2

nvy

Neovim Config Files
Lua
19
star
3

dotfiles

Personal Dotfiles.
Lua
18
star
4

regg

Static Site Generator Written in Rust
Rust
7
star
5

client-routing

Client side routing implmented from scratch using Vanilla JavaScript.
JavaScript
4
star
6

react-directory

âš› A Small React Component Library for making directory structure user interfaces.
TypeScript
3
star
7

ScrollPersist

A very lightweight JavaScript framework/tool to help you continue from the exact position of your scroll on a webpage from where you left.
HTML
2
star
8

yashguptaz.com

Personal Blog by Yash Gupta
JavaScript
2
star
9

ellipsis

Blog for ellipsis.
JavaScript
2
star
10

www

Personal Website
TypeScript
2
star
11

virtual_dom_from_scratch

Virtual DOM from scratch. [Original Author: @heiskr ]
JavaScript
1
star
12

website

A simple website made by me with HTML, CSS and JavaScript.
CSS
1
star
13

howtographql-go-backend

Learning Golang by building a GraphQL Backend
1
star
14

tree-sitter-astro

Astro grammar for tree-sitter.
C
1
star
15

crafting-interpreters

Book: https://craftinginterpreters.com/
Java
1
star
16

nextjs-preview-bug-reproduction

1
star
17

ellipsis_CMS

JavaScript
1
star
18

jotify

Notion-Clone React App
TypeScript
1
star
19

react-notes

JavaScript
1
star
20

react-github-finder

JavaScript
1
star
21

gatsby-starter-portfolio-jodie-netlify-cms

Netlify CMS integration of gatsby-starter-portfolio-jodie
TypeScript
1
star
22

react-india-presentations-2019

React India 2019 Presenation of all the speakers. Feel free to make PRs
1
star