Skip to content

🧛🏻‍♂️v0.0.1

Latest
Compare
Choose a tag to compare
@BrunoCiccarino BrunoCiccarino released this 23 Aug 20:52
· 2 commits to main since this release

First version adding the option to change themes with keyboard shortcuts that the user can configure in their init file.

How install?

To install we have several ways, we can install manually or through package managers such as Vim-Plug, Vundle, Pathogen... Let's start by seeing how to install it manually:

first you run the installer

bash install.sh

then you configure it in your configuration file, like in this example:

source ~/.vim/plugins/gardenal.vim

let themes = ['desert', 'gruvbox', 'monokai']
call MapThemeSwitcherKeys(themes)
nnoremap <silent> 1 :call ThemeSwitcher(themes, 1)<CR>
nnoremap <silent> 2 :call ThemeSwitcher(themes, 2)<CR>
nnoremap <silent> 3 :call ThemeSwitcher(themes, 3)<CR>

To install via vim-plug, we can do it this way, add the following statement to your configuration file:

Plug 'BrunoCiccarino/gardenal'
Then press esc to exit insertion mode and run :PlugInstall

To install via vundle it's very similar, you just need to add the following instructions to your configuration file:

Plugin 'BrunoCiccarino/gardenal'
Then you repeat the process by pressing esc and typing :PluginInstall

In Pathogen it requires you to clone my repository to a specific directory, for vim you clone to the ~/.vim/bundle directory in neovim you clone to the ~/.config/nvim/bundle directory . As in this example:

git clone https://github.com/BrunoCiccarino/gardenal ~/.vim/bundle/gardenal