Skip to content

sommaa/mantis-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua


Logo
Logo

mantis-nvim colorscheme

Report Bug · Request Feature

Buy Me a Coffee at ko-fi.com

🎨 Palette


Preview Hex Description

#CFFC49 Lime

#323946 Grey

#15171A Anthracite

🛠 Options

require("mantis-nvim").setup({
  palette = "mantis",

  termguicolors = true,

  terminal_color = true,

  plugin_default = "auto", -- Sets how all plugins will be loaded
                           -- "auto": Uses lazy / packer enabled plugins to load highlights.
                           -- true: Enables all plugins highlights.
                           -- false: Disables all plugins.

  plugins = {              -- Allows for individual plugin overides using plugin name and value from above.
    ["bufferline.nvim"] = false,
  },

  palettes = {
    mantis = {          -- Extend or modify mantis palette colors
      red = "#800010",      -- Overrides mantis red color
    },
  },

  highlights = {
    global = {             -- Add or modify hl groups globaly, theme specific hl groups take priority.
      modify_hl_groups = function(hl, c)
        hl.PluginColor4 = {fg = c.my_grey, bg = c.none }
      end,
      ["@String"] = {fg = "#ff00ff", bg = "NONE"},
    },
    mantis = {
      -- first parameter is the highlight table and the second parameter is the color palette table
      modify_hl_groups = function(hl, c) -- modify_hl_groups function allows you to modify hl groups,
        hl.Comment.fg = c.my_color
        hl.Comment.italic = true
      end,
      ["@String"] = {fg = "#ff00ff", bg = "NONE"},
    },
  },
})

⚡ Requirements

  • Neovim >= 0.8

🔌 Supported Plugins

📦 Installation

Lazy:

{ "sommaa/mantis-nvim" }

Packer:

 use "sommaa/mantis-nvim"

🌹 Heavily ispirated by: