How to arrange/design/configure neovim from scratch in termux
Hello visitor in today's post we will learn how to
arrange/design/configure neovim from scratch in
termux.
Let's learn how to install Plus that will make your life easier as a front-end
developer.
Follow the steps.
1.Install termux
Click on this linkand download the
termux and then run these commands below
pkg update
jarvisstaraq.blogspot.com
pkg upgrade
jarvisstaraq.blogspot.com
2.Install neovim
Open
termux
and run this command
apt install neovim -y
jarvisstaraq.blogspot.com
3.Install Plug-vim
Open
termux
and run these commands
Plug-vim
sh -c 'curl -fLo
"${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim
--create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
configuration file
cd .config
mkdir nvim
touch init.vim
jarvisstaraq.blogspot.com
4.Install Plugs
Open
termux
and run these commands
nvim init.vim
jarvisstaraq.blogspot.com
After executing this command, you will enter neovim and then you will copy and
paste this code below in your neovim that will install one dark theme plug in
your neovim
call plug#begin()
Plug 'one-dark/onedark.nvim'
call plug#end()
colorscheme onedark
jarvisstaraq.blogspot.com
Open
termux
and run this command to open neovim
nvim
jarvisstaraq.blogspot.com
After entering noevim run these commands
:PlugInstall
jarvisstaraq.blogspot.com
Click ESC on your keyboard
Then run this command in neovim to exit neovim
:q
jarvisstaraq.blogspot.com
Then open neovim again and you will see that your theme will change to one
dark
nvim
jarvisstaraq.blogspot.com
5.Install NERDtree
Plug for file management
You will add this code below in the same code where the one dark code is to
install nerdtree
Plug 'preservim/nerdtree'
jarvisstaraq.blogspot.com
Add this code below in the same code where the one dark code is below
the one dark code this code is the nerdtree configuration for when you
click CTRL + n to open a toolbar file browsing
nnoremap <C-n> :NERDTree<CR>
jarvisstaraq.blogspot.com
6.Install vim-polyglot
Sytanx highlighter plug from various programming languages like javascript
python c c++ c# and more
You will add this code below in the same code where the one dark code is to
install vim-polyglot
Plug 'sheerun/vim-polyglot'
jarvisstaraq.blogspot.com
7.Install vim-rainbow
Parent braces and square brackets highlight plug
You will add this code below in the same code where the one dark code is to
install vim-rainbow
Plug 'frazrepo/vim-rainbow'
jarvisstaraq.blogspot.com
8.Install Plug lightline.vim
Neovim mode bar color plug
You will add this code below in the same code where the one dark code is to
install lightline.vim
Plug 'itchyny/lightline.vim'
jarvisstaraq.blogspot.com
9.Install coc.nvim
Front end technologies autocomplete plugin
You will add this code below in the same code where the one dark code is to
install coc-nvim
Plug 'neoclide/coc.nvim', {'branch': 'release'}
jarvisstaraq.blogspot.com
Now let's install the plugs added in the previous lines of the init.vim
file
Open
termux
and run these commands
open neovim
nvim
jarvisstaraq.blogspot.com
Install the Plugs
:PlugInstall
jarvisstaraq.blogspot.com
Click ESC on your keyboard
Then run this command in neovim to exit neovim
:q
jarvisstaraq.blogspot.com
Open neovim again and you will see the results of the installed plugs and
you will see how to change your neovim from 0 to 100.
nvim
jarvisstaraq.blogspot.com
additional settings
call plug#begin()
Plug 'one-dark/onedark.nvim'
Plug 'sheerun/vim-polyglot'
Plug 'preservim/nerdtree'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'frazrepo/vim-rainbow'
Plug 'itchyny/lightline.vim'
call plug#end()
set number
set nocompatible
colorscheme onedark
nnoremap <C-n> :NERDTree<CR>