GithubHelp home page GithubHelp logo

datsfilipe / min-theme.nvim Goto Github PK

View Code? Open in Web Editor NEW
33.0 1.0 1.0 44 KB

Porting Min Theme from Visual Studio Code to Neovim.

License: MIT License

Lua 99.18% Scheme 0.82%
colorscheme dark-theme nvim-colorscheme nvim-plugin theme neovim-colorscheme

min-theme.nvim's Introduction

Min Theme

A port of Min Theme for Neovim.



preview-dark



Installation

  1. Using Lazy:
{ 'datsfilipe/min-theme.nvim' },
  1. Using Packer:
use 'datsfilipe/min-theme.nvim'

Configuration

To configure the plugin, you can call require('min-theme').setup({}), passing the table with the values in it, the following are the defaults:

require('min-theme').setup({
    -- (note: if your configuration sets vim.o.background the following option will do nothing!)
    theme = 'dark', -- String: 'dark' or 'light', determines the colorscheme used
    transparent = false, -- Boolean: Sets the background to transparent
    italics = {
        comments = true, -- Boolean: Italicizes comments
        keywords = true, -- Boolean: Italicizes keywords
        functions = true, -- Boolean: Italicizes functions
        strings = true, -- Boolean: Italicizes strings
        variables = true, -- Boolean: Italicizes variables
    },
    overrides = {}, -- A dictionary of group names, can be a function returning a dictionary or a table.
})
  • The colorscheme() function

This function can be used to set the colorscheme in your editor, however, if it doesn't work for you, you can always use vim.cmd.colorscheme('min-theme').

Specifics for Some Plugins

Bufferline.nvim

To use the theme with bufferline.nvim, you can use the following configuration:

require('bufferline').setup({
    highlights = require('min-theme').bufferline.highlights,
})

Contributing

Contributions are welcome, please open an issue if you encounter any bug or if you find any improvements are needed for the code, also feel free to open a PR.

Take a look at the Development Guide

License

MIT License

min-theme.nvim's People

Contributors

datsfilipe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

min-theme.nvim's Issues

setup() is broken

According to the documentation, this should work.

require('min-theme').setup({ theme = 'light' })

However, I needed to change to:

require('min-theme').colorscheme()

Also, trying to call the setup before the colorscheme does not work either:

local theme = require('min-theme')

theme.setup({ theme = 'light' })
theme.colorscheme()

To change the theme to min-theme-light, the call needed to be:

vim.o.background = 'light'
require('min-theme').colorscheme()

Add support for other plugins highlights

Description

Basically you need to add colors to the highlight groups of those plugins in the min-theme.nvim plugin. Of course, the colors should be the ones the theme is using.

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.