-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvimrc
More file actions
executable file
·92 lines (68 loc) · 2.39 KB
/
nvimrc
File metadata and controls
executable file
·92 lines (68 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
"Credit to benwaffle
set number " show the line number
"set relativenumber " show relative line numbers
set smartindent
set showcmd " show mode
set cursorline " highlight the current line
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set splitbelow " splitting a window will put it below
set splitright " splitting a window will put it right
set foldlevel=999 " start with all folds expanded
set ruler " show row/column
set scrolloff=1 " always show one line below/above your cursor
set mouse=a " mouse support
set termguicolors
"set undofile
set inccommand=nosplit " live preview for replace
" vim-plug
call plug#begin('~/.config/nvim/plugs')
Plug 'flazz/vim-colorschemes'
Plug 'chriskempson/base16-vim'
Plug 'scrooloose/nerdtree' " sidebar tree
Plug 'Xuyuanp/nerdtree-git-plugin' " sidebar tree git support
Plug 'neomake/neomake' " code checkers for many languages
Plug 'vim-airline/vim-airline' " pretty status bar
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'airblade/vim-gitgutter'
" language support
Plug 'yanqd0/nginx.vim' " nginx conf
Plug 'wlangstroth/vim-racket' " racket
Plug 'arrufat/vala.vim' " vala
Plug 'igankevich/mesonic' " meson
Plug 'leafgarland/typescript-vim' " typescript
Plug 'cespare/vim-toml' " toml
" erlang
Plug 'vim-erlang/vim-erlang-runtime'
Plug 'vim-erlang/vim-erlang-compiler'
Plug 'vim-erlang/vim-erlang-omnicomplete'
Plug 'vim-erlang/vim-erlang-tags'
" autocompletion
"Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-clang'
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' }
Plug 'poppyschmo/deoplete-latex'
"Plug 'Shougo/neco-vim'
call plug#end()
colorscheme Tomorrow-Night-Eighties
highlight Comment cterm=italic
nmap ; :Buffers<CR>
nmap <Leader>t :Files<CR>
" open nerdtree on start
autocmd vimenter * NERDTree
" jump to main window
autocmd VimEnter * wincmd p
" close nerdtree if it's the only window left
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" run neomake on write
autocmd! BufWritePost * Neomake
" use unicode symbols for airline
let g:airline_powerline_fonts = 1
" enable deoplete autocompletion
let g:deoplete#enable_at_startup = 1
let g:deoplete#sources#clang#libclang_path = '/usr/lib64/libclang.so'
let g:deoplete#sources#clang#clang_header = '/usr/include/clang'
let g:gitgutter_realtime = 0