cdmill / neomodern.nvim

A collection of modern themes for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEOMODERN.nvim

A collection of themes (5 dark, 1 light) written in Lua for Neovim $\geq$ 0.9. Support for Treesitter syntax highlighting and LSP semantic highlighting. Forked from OneDark.nvim.

Themes have been designed to be unintrusive, simple, and pleasing to the eyes.

Gallery

ICECLIMBER

A dark theme with colors inspired from Nintendo's Ice Climbers characters

Click to toggle previews

image

COFFEECAT

A dark, brown pastel theme

Click to toggle previews

image

DARKFOREST

A darker, greener take on the classic Everforest theme

Click to toggle previews

image

CAMPFIRE

A dark, purple-based theme with fiery highlights

Click to toggle previews

image

ROSEPRIME

Inspired by ThePrimeagen's use of the Rosé-Pine theme with tmux and no color fixing.

Click to toggle previews

image

DAYLIGHT

A light variant of ICECLIMBER

Click to toggle previews

image

Installation

Install via your favorite package manager:

-- Using lazy.nvim
{
  "cdmill/neomodern.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("neomodern").setup({
      -- optional configuration here
    })
    require("neomodern").load()
  end,
},

Note

require("neomodern").load() will call set colorscheme with your chosen style. If you prefer, you can use vim.cmd([[colorscheme <style>]]) instead. For example, to use darkforest: vim.cmd([[colorscheme darkforest]]). Note if you use vim.cmd([[colorscheme neomodern]]), iceclimber will be used.

Configuration

There are 6 themes included (5 dark, 1 light). The light theme is used when { style = "daylight" } is passed to setup(options) or when vim.o.background = "light".

Default options are given below

require("neomodern").setup({
  -- Main options --
  style = "iceclimber", -- choose between 'iceclimber', 'coffeecat', 'darkforest', 'campfire', 'roseprime', 'daylight'
  toggle_style_key = nil, -- keymap to cycle between styles
  toggle_style_list = { -- a table of which styles to cycle through, by default all styles are included
    "iceclimber",
    "coffeecat",
    "darkforest",
    "campfire",
    "roseprime",
    "daylight"
  },
  transparent = false, -- don't set background
  term_colors = true, -- if true enable the terminal

  -- Formatting --
  code_style = {
    comments = "italic",
    conditionals = "none",
    functions = "none",
    keywords = "none",
    headings = "bold", -- markdown headings
    operators = "none",
    keyword_return = "none",
    strings = "none",
    variables = "none",
  },

  -- UI options --
  ui = {
    cmp_itemkind_reverse = false, -- reverse item kind highlights in cmp menu
    colored_docstrings = true, -- if true, docstrings will be highlighted like strings, otherwise they will be highlighted like comments
    plain = false, -- don't set background for search
    show_eob = true, -- show the end-of-buffer tildes

    -- Plugins Related --
    lualine = {
      bold = true,
      plain = false, -- use a less distracting lualine. note: works best when no lualine separators are used
    },
    telescope = "borderless", -- choose between 'borderless' or 'bordered'
    diagnostics = {
      darker = true, -- darker colors for diagnostic
      undercurl = true, -- use undercurl for diagnostics
      background = true, -- use background color for virtual text
    },
  },

  -- Custom Highlights --
  colors = {}, -- Override default colors
  highlights = {}, -- Override highlight groups
})
require("neomodern").load()

Bordered Telescope

Click to toggle previews

image

Borderless Telescope

Click to toggle previews

image

Normal Lualine

Click to toggle previews

image

Plain Lualine

Click to toggle previews

image

Customization

Example using custom colors and highlights:

require("neomodern").setup {
  colors = {
    orange = '#ff8800', -- define a new color
    keyword = '#817faf', -- redefine an existing color
  },
  highlights = {
    ...
    ["@keyword"] = { fg = "$keyword", fmt = 'bold' },
    ["@function"] = { bg = "$orange", fmt = 'underline,italic' },
    ...
  },
}

Note

Treesitter keywords have changed for Neovim $\geq$ 0.8.

Supported Plugins

Extras

Available here

Contributing

Pull requests are welcome.

If you are wanting to submit a new theme/style, please create a pull request with your new colors in this file.

If you are wanting support for a plugin, either open an issue or submit a pull request with your highlight additions in this file.

Inspiration

License

MIT

About

A collection of modern themes for Neovim

License:Other


Languages

Language:Lua 87.6%Language:Shell 12.4%