Code Monkey home page Code Monkey logo

neomodern.nvim's Introduction

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

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

neomodern.nvim's People

Contributors

cdmill avatar

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.