Add colorscheme example (should be loaded after plug#end())

This commit is contained in:
Junegunn Choi 2024-06-01 15:40:03 +09:00
parent 3f1daea5bd
commit 7095372c4b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 29 additions and 13 deletions

View File

@ -160,11 +160,11 @@ call plug#begin()
" Make sure you use single quotes " Make sure you use single quotes
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align " Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
Plug 'junegunn/vim-easy-align' Plug 'junegunn/seoul256.vim'
" Any valid git URL is allowed " Any valid git URL is allowed
Plug 'https://github.com/junegunn/seoul256.vim.git' Plug 'https://github.com/junegunn/vim-easy-align.git'
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above) " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' } Plug 'fatih/vim-go', { 'tag': '*' }
@ -199,6 +199,10 @@ call plug#end()
" You can revert the settings after the call like so: " You can revert the settings after the call like so:
" filetype indent off " Disable file-type-specific indentation " filetype indent off " Disable file-type-specific indentation
" syntax off " Disable syntax highlighting " syntax off " Disable syntax highlighting
" Color schemes should be loaded after plug#end().
" We prepend it with 'silent!' to ignore errors when it's not yet installed.
silent! colorscheme seoul256
``` ```
### Lua example for Neovim ### Lua example for Neovim
@ -213,11 +217,11 @@ local Plug = vim.fn['plug#']
vim.call('plug#begin') vim.call('plug#begin')
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align -- Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
Plug('junegunn/vim-easy-align') Plug('junegunn/seoul256.vim')
-- Any valid git URL is allowed -- Any valid git URL is allowed
Plug('https://github.com/junegunn/seoul256.vim.git') Plug('https://github.com/junegunn/vim-easy-align.git')
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above) -- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug('fatih/vim-go', { ['tag'] = '*' }) Plug('fatih/vim-go', { ['tag'] = '*' })
@ -249,6 +253,10 @@ Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
Plug('~/my-prototype-plugin') Plug('~/my-prototype-plugin')
vim.call('plug#end') vim.call('plug#end')
-- Color schemes should be loaded after plug#end().
-- We prepend it with 'silent!' to ignore errors when it's not yet installed.
vim.cmd('silent! colorscheme seoul256')
``` ```
## Commands ## Commands

View File

@ -1,4 +1,4 @@
plug.txt plug Last change: May 15 2024 plug.txt plug Last change: Jun 1 2024
PLUG - TABLE OF CONTENTS *plug* *plug-toc* PLUG - TABLE OF CONTENTS *plug* *plug-toc*
============================================================================== ==============================================================================
@ -121,11 +121,11 @@ The following examples demonstrate the additional features of vim-plug.
" Make sure you use single quotes " Make sure you use single quotes
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align " Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
Plug 'junegunn/vim-easy-align' Plug 'junegunn/seoul256.vim'
" Any valid git URL is allowed " Any valid git URL is allowed
Plug 'https://github.com/junegunn/seoul256.vim.git' Plug 'https://github.com/junegunn/vim-easy-align.git'
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above) " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' } Plug 'fatih/vim-go', { 'tag': '*' }
@ -160,6 +160,10 @@ The following examples demonstrate the additional features of vim-plug.
" You can revert the settings after the call like so: " You can revert the settings after the call like so:
" filetype indent off " Disable file-type-specific indentation " filetype indent off " Disable file-type-specific indentation
" syntax off " Disable syntax highlighting " syntax off " Disable syntax highlighting
" Color schemes should be loaded after plug#end().
" We prepend it with 'silent!' to ignore errors when it's not yet installed.
silent! colorscheme seoul256
< <
< Lua example for Neovim >____________________________________________________~ < Lua example for Neovim >____________________________________________________~
@ -174,11 +178,11 @@ example above.
vim.call('plug#begin') vim.call('plug#begin')
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align -- Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
Plug('junegunn/vim-easy-align') Plug('junegunn/seoul256.vim')
-- Any valid git URL is allowed -- Any valid git URL is allowed
Plug('https://github.com/junegunn/seoul256.vim.git') Plug('https://github.com/junegunn/vim-easy-align.git')
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above) -- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug('fatih/vim-go', { ['tag'] = '*' }) Plug('fatih/vim-go', { ['tag'] = '*' })
@ -210,6 +214,10 @@ example above.
Plug('~/my-prototype-plugin') Plug('~/my-prototype-plugin')
vim.call('plug#end') vim.call('plug#end')
-- Color schemes should be loaded after plug#end().
-- We prepend it with 'silent!' to ignore errors when it's not yet installed.
vim.cmd('silent! colorscheme seoul256')
< <
COMMANDS *plug-commands* COMMANDS *plug-commands*