Actions

EmSys

Difference between revisions of "Neovim"

From EdWiki

m (Vim-plug commands)
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== Plugins with Vim-Plug ==
 
=== Installing Neovim ===
 
* On Mac
 
  brew install neovim
 
* Ubuntu
 
  sudo apt install neovim
 
* Arch
 
sudo pacman -S neovim
 
  
==== Create config ====
+
# [[EmSys:Neovim Plugins with Vim-Plug | Neovim - Plugins with Vim-Plug]]
Make directory for your Neovim config
+
# [[EmSys:Neovim Setting up the basics | Neovim - Setting up the basics ]]
mkdir ~/.config/nvim
+
# [[EmSys:Neovim Themes | Neovim Themes]]
 
+
# [[EmSys:Neovim Intellisense with coc | Neovim Intellisense with coc]]
Create an init.vim file
+
# [[EmSys:Neovim Airline | Neovim Airline]]
touch ~/.config/nvim/init.vim
+
# [[EmSys:Exploring coc-explorer | Exploring coc-explorer]]
 
+
# [[EmSys:Integrate Neovim with Ranger | Integrate Neovim with Ranger]]
==== Install vim-plug ====
+
# [[EmSys:Integrate Neovim with FZF | Integrate Neovim with FZF]]
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+
# [[EmSys:Vim-commentary | Vim-commentary]]
 
+
# [[EmSys:Adding color with colorizer and rainbow | Adding color with colorizer & rainbow]]
You should now have plug.vim in your autoload directory so it will load of on start
+
# [[EmSys:Project Management with Startify | Project Management with Startify]]
 
+
# [[EmSys:Git integration | Git integration]]
=== Add a new file for plugins ===
+
# [[EmSys:Which Key | Which Key]]
We will manage our plugins in a separate file for the sake of my own sanity
+
# [[EmSys:Quickscope | Quickscope]]
mkdir ~/.config/nvim/vim-plug
+
# [[EmSys:Sneak | Sneak]]
touch ~/.config/nvim/vim-plug/plugins.vim
+
# [[EmSys:Floaterm | Floaterm]]
 
+
#[[EmSys:Snippets with CoC | Snippets with CoC]]
=== Let's add some plugins ===
+
# [[EmSys:Installing Nerd Fonts | Installing Nerd Fonts]]
Add the following to ~/.config/nvim/vim-plug/plugins.vim
+
# [[EmSys:LSP Completion Symbols in CoC | LSP Completion Symbols in CoC]]
<syntaxhighlight lang="TypoScript" line start="1">
+
" auto-install vim-plug
+
if empty(glob('~/.config/vim/autoload/plug.vim'))
+
  silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
+
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+
  "autocmd VimEnter * PlugInstall
+
  "autocmd VimEnter * PlugInstall | source $MYVIMRC
+
endif
+
call plug#begin('~/.config/nvim/autoload/plugged')
+
    " Better Syntax Support
+
    Plug 'sheerun/vim-polyglot'
+
    " File Explorer
+
    Plug 'scrooloose/NERDTree'
+
    " Auto pairs for '(' '[' '{'
+
    Plug 'jiangmiao/auto-pairs'
+
call plug#end()
+
</syntaxhighlight>
+
 
+
=== Source your plugins ===
+
Add the following line to init.vim
+
source $HOME/.config/nvim/vim-plug/plugins.vim
+
=== Vim-plug commands ===
+
 
+
Open nvim
+
nvim
+
<br />
+
Check the status of your plugins
+
:PlugStatus
+
<br />
+
Install all of your plugins
+
:PlugInstall
+
<br />
+
To update your plugins
+
:PlugUpdate
+
<br />
+
After the update you can press d to see the differences or run
+
:PlugDiff
+
<br />
+
To remove plugins that are no longer defined in the plugins.vim file
+
:PlugClean
+
<br />
+
Finally if you want to upgrade vim-plug itself run the following
+
:PlugUpgrade
+
 
+
 
+
 
+
[[File:prev.gif|left|link=EmSys:Neovim]][[File:home.gif|center|link=EmSys:Neovim]][[File:next.gif|right|link=EmSys:Neovim Setting up the basics]]
+

Latest revision as of 08:12, 24 February 2021


  1. Neovim - Plugins with Vim-Plug
  2. Neovim - Setting up the basics
  3. Neovim Themes
  4. Neovim Intellisense with coc
  5. Neovim Airline
  6. Exploring coc-explorer
  7. Integrate Neovim with Ranger
  8. Integrate Neovim with FZF
  9. Vim-commentary
  10. Adding color with colorizer & rainbow
  11. Project Management with Startify
  12. Git integration
  13. Which Key
  14. Quickscope
  15. Sneak
  16. Floaterm
  17. Snippets with CoC
  18. Installing Nerd Fonts
  19. LSP Completion Symbols in CoC