Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

rafamadriz/onepro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One Pro

2021-May-26

2021-May-26_1

NOTE: this theme is only being updated on themes.nvim

✨ Features

  • Customizable.
  • Made to work with treesitter.
  • Support for built-in LSP.
  • Support for some of the most popular plugins.
  • Soft contrast for eye protection.
  • Multiple options to enable italic and bold text.
  • Vivid colors.

Requirements

NOTE: doesn't support Vim, it uses lua.

📦 Installation

Use your favorite plugin manager. Example packer:

use "rafamadriz/onepro"

🚀 Usage

Neovim

To set the theme you can use the following.

vim.cmd[[colorscheme onepro]]

To see all the available options do :help onepro-configuration in Neovim

Lualine

To enable the lualine theme, put this somewhere in your config:

require('lualine').setup {
  options = {
    -- ... your lualine config
    theme = 'onepro'
    -- ... your lualine config
  }
}

⚙️ Configuration:

Note: the configuration options should be placed before vim.cmd[[colorscheme onepro]]

To see all the options from neovim, you can execute :help onepro.txt

Option Default Description
onepro_italic_comment true Italic text for comments
onepro_italic_keyword false Applies to conditionals and keywords like for, do, while, loops etc.
onepro_italic_boolean false true and false
onepro_italic_function false Applies to function (calls and definitions), method (calls and definitions) and built-in functions.
onepro_italic_variable false Applies to variable names that are defined by the languages, like this or self. And any variable name that does not have another highlight group.
onepro_bold false Applies to error and warning messages, functions (calls and definitions), lsp virtual text, etc.

Example config:

vim.g.onepro_italic_keyword = true
vim.g.onepro_italic_function = true

vim.cmd[[colorscheme onepro]]

FAQ

It doesn't work as expected.

  1. This color scheme is mainly designed for true colors, make sure of setting: vim.o.termguicolors = true

  2. To test if your terminal supports true colors, use the following script.

  3. This colorscheme is made to look good with treesitter, if you don't have it, it won't look the same as the screenshoots.

How to enable cursive italic keywords?

  1. Install a font that supports italics, for example JetBrains-NerdFont is an excellent font.

  2. Set the correct italic font for your terminal of choice.

  3. Enable italic text. E.g. vim.g.onepro_italic_keyword = true

Supported plugins:

TODO

  • Add transparent option.
  • Add support for terminals (kitty, alacritty, etc.)

Acknowledgments

Inspired by OneDark