My favorite theme for nvim.
Go to file
2021-05-10 16:12:54 +05:30
colors fix the modus-operandi theme 2021-04-01 10:09:01 +05:30
lua/modus-themes fix an error with modus-operandi theme 2021-05-10 16:12:54 +05:30
screenshots update the README and screenshots 2020-11-18 15:52:42 +05:30
.gitignore "BREAKING CHANGE" 2021-03-20 13:43:33 +05:30
README.md Merge branch 'master' into make-it-faster-to-load 2021-05-09 21:26:35 +05:30

Modus Color Schemes

This is a color scheme developed by Protesilaos Stavrou for emacs. I have attempted to port it to neovim using lua.

There are 2 color schemes

modus-operandi modus-operandi ( the light theme )

modus-vivendi modus-vivendi ( the dark theme )

NOTE

The master branch of the theme no longer depends on colorbuddy.

Getting Started

If you are using the stable neovim install tjdevries/colorbuddy.nvim and use the stable branch of this theme. Also make sure to enable termguicolors (the theme also includes 256 colors though)

Vim Plug

Plug 'ishan9299/modus-theme-vim'  -- if using nightly neovim
Plug 'ishan9299/modus-theme-vim', {'branch': 'stable'} -- only if you are not using nightly

Minpac

call minpac#add('ishan9299/modus-theme-vim') -- if using nightly neovim
call minpac#add('ishan9299/modus-theme-vim', {'branch': 'stable'}) -- only if you are not using nightly

Vim Packages

In the terminal execute this command. Read :h packages

cd ~/.config/nvim
mkdir -p pack/packages/{opt,start}
git submodule add --name modus-theme-vim https://github.com/ishan9299/modus-theme-vim pack/packages/start/modus-theme-vim

Packer.nvim

  use 'ishan9299/modus-theme-vim'

To set the current theme.

vim.cmd('colorscheme modus-vivendi')

Plugins Explicitly Configured

  • TreeSitter
  • Telescope
  • Startify
  • gitsigns
  • GalaxyLine
  • nvim-ts-rainbow

Please feel free to open an issue if you want other plugins to be included.

Configuration

The theme has a faint syntax options which dims the colors if you find the default distracting.

vim.g.modus_faint_syntax = 1

modus-faint-operandi modus-faint-vivendi

It also provides a by default configured statusline using galaxyline plugin. To use it

vim.g.modus_moody_enable = 1

or

let g:modus_moody_enable = 1

There are additional options also

vim.g.modus_yellow_comments = 1 -- also enable the faint syntax
vim.g.modus_green_strings = 1

All these options are disabled by default.

Syntax Highlighting Configured for these languages

  • viml
  • python
  • nix
  • lua

TreeSitter is supported if there is a language that isn't properly highlighted please open an issue.

NOTE

  • vim is not supported.
  • It is not well tested with the stable neovim (version 0.4.4) please open an issue or consider using nightly.
  • For using these colorschemes in your terminal