From aee9a774594771b0664e29880d1b4230b1c8a54f Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Sun, 11 Jun 2023 10:44:35 +0200 Subject: [PATCH] Add lazy.nvim usage --- vim/README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/vim/README.md b/vim/README.md index 909896e..a86c98e 100644 --- a/vim/README.md +++ b/vim/README.md @@ -6,14 +6,28 @@ NeoVim + Tmux with true colors on iTerm2. ## Installation ### Using a plugin manager (recommended) -vim-plug: +#### vim-plug -``` +```vim Plug 'sonph/onehalf', { 'rtp': 'vim' } ``` The 'rtp' option is necessary as the vim theme resides in a subdirectory of the git repo. +#### lazy.nvim + +```lua +{ + "sonph/onehalf", + + config = function(plugin) + vim.opt.rtp:append(plugin.dir .. "/vim") + end, +} +``` + +The 'rtp' option is necessary as the vim theme resides in a subdirectory of the git repo. + ### Manual Installation Download the files in [vim/](./) and put them in their respective folders (`./vim/colors/` and `./vim/autoload/airline/themes/`) @@ -26,7 +40,7 @@ syntax highlighting on, and 256 colors set. Vim version >= 7.4 recommended. For example: -``` +```vim syntax on set t_Co=256 set cursorline @@ -45,7 +59,7 @@ bit). In vim/neovim, use `set termguicolors` option: -``` +```vim if exists('+termguicolors') let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum"