Skip to content

tiesen243/vercel.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel Theme

Preview

Light Theme

Light Theme

Dark Theme

Dark Theme

Installation

  1. Using Lazy:
{ 'tiesen243/vercel.nvim' },
  1. Using Packer:
use 'tiesen243/vercel.nvim'

Configuration

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

{
    "tiesen243/vercel.nvim",
    lazy = false,
    priority = 1000,
    config = function()
        require("vercel").setup({
            theme = "light"        -- String: Sets the theme to light or dark (Default: light)
            transparent = false,   -- Boolean: Sets the background to transparent (Default: false)
            italics = {
                comments = true,   -- Boolean: Italicizes comments (Default: true)
                keywords = true,   -- Boolean: Italicizes keywords (Default: true)
                functions = true,  -- Boolean: Italicizes functions (Default: true)
                strings = true,    -- Boolean: Italicizes strings (Default: true)
                variables = true,  -- Boolean: Italicizes variables (Default: true)
                bufferline = false -- Boolean: Italicizes bufferline (Default: false)
            },
            overrides = {},        -- A dictionary of group names, can be a function returning a dictionary or a table.
        })

        -- This must be called before setting the colorscheme, otherwise it will always default to light mode
        vim.cmd.colorscheme("vercel")
    end,
}

Specifics for Some Plugins

Bufferline.nvim

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

require('bufferline').setup({
  highlights = function()
    local status_ok, vercel = pcall(require, "vercel")
    if not status_ok then
      return {}
    end
    return vercel.highlights.bufferline
  end,
})

Neo-tree.nvim

For better experience with this theme, I recommend changing the folder icons to:

require('neo-tree').setup({
  default_component_configs = {
    icon = {
      folder_closed = "",
      folder_open = "",
      folder_empty = "",
    },
  }
}

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.

Special Thanks

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Vercel theme for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •