Code Monkey home page Code Monkey logo

calvera-dark.nvim's Introduction

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

calvera-dark.nvim's People

Contributors

kdheepak avatar kornicameister avatar niyabits avatar smiteshp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

calvera-dark.nvim's Issues

Extending suite of scheme

It would be awesome if you could provide with a colors-cheme for terminals like kitty/alacritty and if I'm being ambitious, maybe for shells like fish/zsh. I am currently using tokyonight and they have provided the whole suite of color-schemes, probably generated it using something, I am not sure. I would really appreciate if you could do this.

Add highlight for WinSeparator

Nvim is deprecating VertSplit and moving to WinSeparator for borders in 0.10. By default, WinSeparator links to normal which does not look great for most colorschemes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.