Skip to content

khatibomar/leaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaf

logo

Art generated by Copilot

Low contrast light green theme



{4AC343FA-D887-4B24-A772-ADA3AFF3806C}



Installation

  1. Using Lazy:
{ 'khatibomar/leaf.nvim' },
  1. Using Packer:
use 'khatibomar/leaf.nvim'

Configuration

To configure the plugin, you can call require('leaf').setup({}), passing the table with the values in it. The following are the defaults:

require('leaf').setup({
    -- (note: if your configuration sets vim.o.background the following option will do nothing!)
    theme = 'dark', -- String: 'dark' or 'light', determines the colorscheme used
    transparent = false, -- Boolean: Sets the background to transparent
    italics = {
        comments = true, -- Boolean: Italicizes comments
        keywords = true, -- Boolean: Italicizes keywords
        functions = true, -- Boolean: Italicizes functions
        strings = true, -- Boolean: Italicizes strings
        variables = true, -- Boolean: Italicizes variables
    },
    overrides = {}, -- A dictionary of group names, can be a function returning a dictionary or a table.
})
  • The colorscheme() function

This function can be used to set the colorscheme in your editor, however, if it doesn't work for you, you can always use vim.cmd.colorscheme('leaf').

Specifics for Some Plugins

Bufferline.nvim

To use the theme with bufferline.nvim, you can use the following configuration:

require('bufferline').setup({
    highlights = require('leaf').bufferline.highlights,
})

Contributing

Contributions are welcome, please open an issue if you encounter any bug or if you find any improvements are needed for the code, also feel free to open a PR.

Take a look at the Development Guide

License

MIT License

About

Neovim Low contrast light green theme

Resources

License

Stars

Watchers

Forks