Home

Awesome

Enfocado for Vim

Banner

License Badge README Style Badge

Enfocado is more than a theme, it is a concept of "how themes should be", focusing on what is really important to developers: the code and nothing else.

What you won't have if you don't install Enfocado:

<div align="center"> <img src="https://raw.githubusercontent.com/wuelnerdotexe/enfocado/main/assets/vim-dark-nature.png"> <img src="https://raw.githubusercontent.com/wuelnerdotexe/enfocado/main/assets/vim-light-nature.png"> <strong>Nature:</strong> go for the <code>nature</code> style if you are a minimalist developer who is always <strong>connected to nature</strong>. </div> <br /> <div align="center"> <img src="https://raw.githubusercontent.com/wuelnerdotexe/enfocado/main/assets/vim-dark-neon.png"> <img src="https://raw.githubusercontent.com/wuelnerdotexe/enfocado/main/assets/vim-light-neon.png"> <strong>Neon:</strong> go for the <code>neon</code> style if you are an outgoing developer that is always <strong>surrounded by RGBs</strong>. </div>

Table of Contents

Requirements

Installation

Install via your preferred package manager. Example using vim-plug:

Plug 'wuelnerdotexe/vim-enfocado'

Usage

Statuslines

To use Lightline theme:

let g:lightline = { 'colorscheme': 'enfocado' }

To use Lualine theme:

require('lualine').setup { options = { theme = 'enfocado' } }

To use Airline theme:

let g:airline_theme = 'enfocado'

Colorscheme

First, if you have true color support, enable it:

set termguicolors

Otherwise, enable 256 terminal color support:

set t_Co=256

Choose between light or dark theme:

set background={light or dark}

Then choose your favorite Enfocado style, for example:

let g:enfocado_style = 'neon' " Available: `nature` or `neon`.

If you want to reduce the loading time of Enfocado, you can specify the plugins you want to apply the theme to on demand:

" NOTE: To see a list of all available plugins, run
" `:h enfocado-colorscheme` at the vim commandline.
let g:enfocado_plugins = [
  \   'animate',
  \   'bufferline',
  \   'cmp',
  \   'dap-ui',
  \   'edgy',
  \   'flash',
  \   'gitsigns',
  \   'highlight-undo',
  \   'illuminate',
  \   'indentscope',
  \   'indent-blankline',
  \   'lazy',
  \   'lspconfig',
  \   'lsp-lens',
  \   'mason',
  \   'navic',
  \   'neo-tree',
  \   'noice',
  \   'null-ls',
  \   'substitute',
  \   'surround',
  \   'rainbow-delimiters',
  \   'telescope',
  \   'treesitter',
  \   'treesitter-context',
  \   'ufo',
  \   'visual-multi',
  \   'yanky'
  \ ]

And finally turn on the Enfocado theme and enjoy!

colorscheme enfocado

Customization

Like all colorschemes, Enfocado is easy to customize with autocmd. Make use of the ColorScheme event as in the following examples.

It would be a good idea to put all of your personal changes in an augroup, which you can do with the following code:

augroup enfocado_customization
  autocmd!
    " autocmds...
augroup END

To make the background transparent, you can use the following:

augroup enfocado_customization
  autocmd!
    autocmd ColorScheme enfocado highlight Normal ctermbg=NONE guibg=NONE
augroup END

NOTE: The usage codes must be written in your .vimrc or init.vim.

Syntax

Master your theme, understand and recognize syntax, improve your muscle memory.

SELENIZED COLORHEX COLORHEX COLOR (light)TEXT TYPENATURE SYNTAX TOKENSNEON SYNTAX TOKENS
Dimmed#777777#878787ItalicCommentsComments
Foreground 0#b9b9b9#474747NONEConstants, punctuation, textConstants, punctuation, text
Foreground 1#dedede#282828BoldTitlesTitles
Red#ed4a46#d6000cNONENot used in the syntaxNot used in the syntax
Yellow#dbb32d#c49700NONEConstant identifiersConstant identifiers
Green#70b433#1d9700NONEIdentifiersBuilt-in identifiers
Blue#368aeb#0064e4NONEKeywordsBuilt-in keywords
Magenta#eb6eb7#dd0f9dNONEBuilt-in identifiersIdentifiers
Cyan#3fc5b7#00ad9cNONEStringsStrings
Orange#e67f43#d04a00NONEExceptions (trycatch)Exceptions (trycatch)
Violet#a580e2#7f51d6NONEBuilt-in keywordsKeywords
Bright red#ff5e56#bf0000BoldErrorsErrors
Bright yellow#efc541#af8500NONENot used in the syntaxNot used in the syntax
Bright green#83c746#008400ItalicMethodsBuilt-in methods
Bright blue#4f9cfe#0054cfBoldTypesBuilt-in types
Bright magenta#ff81ca#c7008bItalicBuilt-in methodsMethods
Bright cyan#56d8c9#009a8aUnderlineLinksLinks
Bright orange#fa9153#ba3700NONENot used in the syntaxNot used in the syntax
Bright violet#b891f5#6b40c3BoldBuilt-in typesTypes

DISCLAIMER: Enfocado doesn't customize individual tokens for each language, it just defines the default base, if your syntax doesn't look as described here, it's not our responsibility, it's the responsibility of those who assign wrong tokens to some language's syntax, and we don't correct those problems constantly.

Recommendations

Tree-sitter

If you are on Neovim, it is strongly recommended that you use nvim-treesitter to ensure that your syntax highlighting is as close as possible to what is described above.

Fonts

In order for the human text simulation to work as it should, I recommend that you use either of these three beautiful fonts, which align with the "Mankind and Machine" concept.

Configs

This vim configs comes with Enfocado for Vim already installed by default!

Extras

Maintainer

Hi πŸ‘‹, I'm Wuelner, a software developer from Guatemala, passionate about creating minimalist solutions using solid fundamentals focused on "how things should be".

Contributing

All your ideas and suggestions are welcome! πŸ™Œ

Let me see your captures and let me know what you think with the hashtag #HowThemesShouldBe. πŸ‘€

And of course, if you want to motivate me to constantly improve this theme, your donations are welcome at PayPal. πŸ‘‰πŸ‘ˆ

Plugins

The following plugins are supported:

Credits

License

MIT Β© Wuelner MartΓ­nez.

<p align="center">With πŸ’– from <strong>LATAM</strong> to the world!</p>