Skip to content

5i1ent/eyes.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eyes.nvim

<O>

A monochrome colorscheme for Neovim.

Preview Dark Preview Light

Installation

Installing using lazy

{
    "amedoeyes/eyes.nvim",
    lazy = false,
    priority = 1000,
    opts = {},
}

Applying the colorscheme to lualine

require("lualine").setup({
    options = {
        theme = "eyes"
    }
})

Applying the colorscheme to bufferline

require("bufferline").setup({
    highlights = require("eyes.theme").bufferline,
})

Configurations

Defaults

require("eyes").setup({
    --autoloads the colorscheme
    autoload = true,
    --changes the palette of the colorscheme
    --"dark" or "light"
    pallete = "dark",

    --toggles monochrome for these elements
    toggle = {
        diagnostics = true,
        spell = true,
        terminal = true,

        plugins = {
            codeium = true,
            cmp = true,
            dap = true,
            devicons = true,
            illuminate = true,
            indent_blankline = true,
            lazy = true,
            leap = true,
            mason = true,
            mini_indentscope = true,
            neo_tree = true,
            noice = true,
            notify = true,
            null_ls = true,
            telescope = true,
            undotree = true,
        },
    },

    --extends/overwrites highlights and palette
    extend = {
        highlights = {},
        palette = {},
    },
})

Example using lazy

{
    "amedoeyes/eyes.nvim",
    lazy = false,
    priority = 1000,
    opts = {
        toggle={
            diagnostics = false,

            plugins = {
                neo_tree = false,
                illuminate = false,
            }
        },
        extend = {
            highlights = {
                Normal = { bg = "#101010", fg = "#808080" },
                CursorLine = { bg = "#202020" },
                Type = { italic = true },
            },
            palette = {
                hex00 = "#101010",
            },
        },
    },
}

Recommendations

Use borders when possible for better readability

LSP diagnostics and hover:

local border = "rounded"

vim.diagnostic.config({
    float = {
        border = border,
    },
})

vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
    border = border,
})

vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
    border = border,
})

noice

require("noice").setup({
    presets = {
        lsp_doc_border = true,
    }
})

cmp

require("cmp").setup({
    window = {
        completion = cmp.config.window.bordered({
            winhighlight = "FloatBorder:FloatBorder",
        }),
        documentation = cmp.config.window.bordered({
            winhighlight = "FloatBorder:FloatBorder",
        }),
    },
})

lazy

require("lazy").setup("plugins", {
    ui = {
        border = "rounded",
    },
})

mason

require("mason").setup({
    ui = {
        border = "rounded",
    },
})

null_ls

require("mason").setup({
    border = "rounded",
})

toggleterm

require("toggleterm").setup({
    float_opts = {
        border = "rounded",
    },

    highlights = {
        FloatBorder = {
            link = "FloatBorder",
        },
    },
})

which-key

require("which-key").setup({
    window = {
        border = "rounded",
    },
})

About

Monochrome colorscheme for Neovim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%