sudo apt install neovim
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'
place init.vim in ~/.config/nvim/init.vim
sudo apt install neovim
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'
place init.vim in ~/.config/nvim/init.vim
call plug#begin() | |
Plug 'preservim/nerdtree' " NerdTree | |
Plug 'pangloss/vim-javascript' " JavaScript support | |
Plug 'leafgarland/typescript-vim' " TypeScript syntax | |
Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax | |
Plug 'itchyny/lightline.vim' " Status | |
Plug 'Yggdroot/indentLine' " Indent Lines | |
Plug 'tpope/vim-fugitive' " Git Support | |
Plug 'airblade/vim-gitgutter' " Change Lines | |
" Themes | |
"Plug 'wadackel/vim-dogrun' | |
"Plug 'cseelus/vim-colors-lucid' | |
"Plug 'ayu-theme/ayu-vim' | |
"Plug 'owickstrom/vim-colors-paramount' | |
"Plug 'endel/vim-github-colorscheme' | |
"Plug 'dracula/vim', { 'name': 'dracula' } | |
Plug 'embark-theme/vim', { 'as': 'embark' } | |
" Code Support | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
Plug 'dense-analysis/ale' | |
Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' } | |
Plug 'shawncplus/phpcomplete.vim' | |
Plug 'junegunn/goyo.vim' | |
" Functional | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'junegunn/vim-easy-align' | |
Plug 'alvan/vim-closetag' | |
Plug 'Yggdroot/indentLine' | |
" Autocomplete | |
Plug 'ncm2/ncm2' | |
Plug 'roxma/nvim-yarp' | |
Plug 'ncm2/ncm2-bufword' | |
Plug 'ncm2/ncm2-path' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
call plug#end() | |
" -------------------------- | |
" enable ncm2 for all buffers | |
autocmd BufEnter * call ncm2#enable_for_buffer() | |
set completeopt=noinsert,menuone,noselect | |
" -------------------------- | |
syntax on | |
set termguicolors | |
colorscheme embark | |
" IndentLine {{ | |
let g:indentLine_char = '.' | |
let g:indentLine_first_char = '.' | |
let g:indentLine_showFirstIndentLevel = 1 | |
let g:indentLine_setColors = 0 | |
" }} | |
" Config lightline | |
let g:lightline = { | |
\ 'colorscheme': 'embark', | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], | |
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'FugitiveHead' | |
\ }, | |
\} | |
" -------------------------- | |
set number | |
set ts=4 | |
set cursorline | |
set showmatch | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent | |
set laststatus=2 | |
set updatetime=1000 | |
"--------------------------- | |
"set foldmethod=syntax | |
filetype plugin indent on | |
let python_highlight_all=1 | |
" autocmd vimenter * NERDTree |