Skip to content

mweisshaupt1988/neobeans.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Lua Colorscheme

Neobeans theme for Neovim

neobeans.nvim is a theme loosely based on the default NetBeans theme. It features a dark and a light variant.

Requirements: Neovim 0.7+ and a font patched with NerdFonts glyphs (or disable the custom signs)

Screenshots

dark theme light theme

External Plugin Support

  • dadbod, dadbod-ui
  • Dap, Dap-ui
  • nvim-cmp
  • Telescope
  • NERDTree
  • Nvim Tree
  • Treesitter
  • Lsp
  • Illuminate
  • Diff
  • Git signs
  • Git gutter
  • Signify
  • git-conflict.nvim
  • Neogit
  • Lualine
  • Bufferline
  • vim-airline
  • Lightbulb
  • Ident-BlankLine
  • Scrollbar
  • Startify

Custom command

neobeans.vim registers a custom command to switch between dark and light theme.

:ToggleNeobeans

Installation

You can install this plugin with packer:

use { 'mweisshaupt1988/neobeans.vim', as = 'neobeans' }

Or with vim-plug:

Plug 'mweisshaupt1988/neobeans.vim', { 'as': 'neobeans' }

Active theme

To active the theme call this in your neovim config:

local neobeans = require('neobeans')

neobeans.setup({
    nvim_tree = { contrast = true }, -- or use contrast = false to not apply contrast
    light_mode = false, -- the default is the dark theme, set to true to enable light theme
})

Or with vim script:

colorscheme neobeans
or
colorscheme neobeans_dark

It will automatically set the vim.opt.termguicolors to true

Custom Signs

The theme sets some custom signs with matching highlight definitions. See custom_signs.lua for details.

The signs require a font patched with NerdFonts glyphs!

If you don't want those signs to be set, disable them prior to loading the theme.

vim.g.neobeans_disable_signs = false

Activating lualine theme

Place this in your lualine config:

local lualine = require('lualine')

lualine.setup {
  options = {
    theme = 'neobeans',
  },
}

Activating vim-airline theme

vim.g.airline_theme = "neobeans"

Using the core to get the colors

If you want to get the colors into a lua dictionary

local neobeans = require('neobeans.core')
local colors = neobeans.get_dark_colors()
-- or
local colors = neobeans.get_light_colors()

Overriding colors

If you want to override and customize the colors for various parts of the theme check out the config and override like so:

local colors = require('neobeans.core').get_colors()

require('neobeans').setup({
  override = {
    CursorLineNr = { fg = colors.foreground },
    LineNr = { fg = colors.comment },
  },
})

Any other colors can be overriden in a similar way.

Credits 💝

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published