Skip to content

Instantly share code, notes, and snippets.

@ma-he-sh
Last active January 30, 2021 14:24
Show Gist options
  • Save ma-he-sh/f9d058ec05e095a2cc4ae8cf8a566584 to your computer and use it in GitHub Desktop.
Save ma-he-sh/f9d058ec05e095a2cc4ae8cf8a566584 to your computer and use it in GitHub Desktop.
neovim setup
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment