-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
87 lines (72 loc) · 2.13 KB
/
init.vim
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
let g:polyglot_disabled = ['sensible']
" Specify a directory for plugins
call plug#begin(stdpath('data') . '/plugged')
Plug 'neovim/nvim-lspconfig'
Plug 'windwp/nvim-autopairs'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/cmp-cmdline'
Plug 'hrsh7th/nvim-cmp'
Plug 'mhinz/vim-startify'
Plug 'sheerun/vim-polyglot'
Plug 'christoomey/vim-tmux-navigator'
Plug 'joshdick/onedark.vim'
Plug 'preservim/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'tomasiser/vim-code-dark'
call plug#end()
exe 'source '.(stdpath('config').'\nerdtree.vim')
exe 'source '.(stdpath('config').'\lightline.vim')
lua require('lsp')
lua require('nvim-cmp')
lua require('nvim-autopairs').setup {}
colorscheme codedark
highlight! link Type StructDecl
highlight! link Keyword Boolean
highlight Keyword guifg=s:yellow
highlight PreProc guifg=Grey
highlight Include guifg=Grey
highlight Define guifg=Grey
highlight PreCondit guifg=Grey
highlight @lsp.type.namespace guifg=Grey
highlight @lsp.type.parameter guifg=Grey
highlight @lsp.type.property guifg=LightGrey
highlight link @lsp.type.class Type
highlight link @lsp.type.struct Type
highlight link @lsp.type.enum Type
highlight link @lsp.type.concept Type
highlight link @lsp.type.enumMember Number
highlight link @lsp.type.typeParameter Type
highlight! link Statement Keyword
highlight! link Conditional Keyword
highlight! link Repeat Keyword
highlight! link Label Keyword
highlight! link Operator Keyword
highlight! link Exception Keyword
highlight! link SpecialChar Special
highlight BzAttribute guifg=Grey
highlight BzNamespace guifg=Grey
set number
set relativenumber
set tabstop=4
set shiftwidth=4
set noshowmode
set signcolumn=yes
set listchars=tab:→\ ,space:·,trail:·,extends:>,precedes:<
set list
highlight Whitespace guifg=#3F3F46
fun! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
keepp %s/\s\+$//e
call cursor(l, c)
endfun
augroup filetype
au! BufRead,BufNewFile *.ll set filetype=llvm
augroup END
augroup filetype
au! BufRead,BufNewFile *.bz set filetype=bozon
augroup END
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
set laststatus=2