Adds ALE, LanguageClient, and clang

This commit is contained in:
Barak Michener 2018-06-25 13:21:31 -07:00
parent c257164aee
commit f49657495b
3 changed files with 44 additions and 12 deletions

33
.vimrc
View file

@ -1,4 +1,4 @@
" ___ _ _ _
" ___ _ _ _
" | _ ) __ _ _ _ __ _| |_( )___ __ _(_)_ __ _ _ __
" | _ \/ _` | '_/ _` | / //(_-< \ V / | ' \| '_/ _|
" |___/\__,_|_| \__,_|_\_\ /__/ (_)_/|_|_|_|_|_| \__|
@ -87,7 +87,8 @@ Plug 'sjbach/lusty'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'rstacruz/sparkup'
Plug 'scrooloose/syntastic'
"Plug 'scrooloose/syntastic'
Plug 'w0rp/ale'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'lunaru/vim-less'
@ -95,6 +96,7 @@ Plug 'lunaru/vim-less'
Plug 'tpope/vim-unimpaired'
"Plug 'Valloric/YouCompleteMe'
Plug 'Shougo/deoplete.nvim'
Plug 'zchee/deoplete-clang'
Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
Plug 'zchee/deoplete-jedi'
Plug 'b4winckler/vim-angry'
@ -139,6 +141,10 @@ Plug 'Shougo/denite.nvim'
Plug 'tpope/vim-fireplace'
Plug 'junegunn/vim-easy-align'
Plug 'idris-hackers/idris-vim'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
Plug 'ambv/black'
@ -199,6 +205,13 @@ setlocal cursorline
" ** PLUGIN CONFIGURATION **
"
" Change the source rank
call deoplete#custom#option('sources', {
\ 'python': ['LanguageClient'],
\})
call deoplete#custom#source('buffer', 'rank', 1)
let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-6.0/lib/libclang.so'
let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-6.0/lib/clang'
let g:deoplete#enable_at_startup = 1
" * Vim general/Unknown
let python_highlight_all = 1
@ -216,6 +229,22 @@ let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 2
let g:syntastic_loc_list_height = 10
" E111 = Spaces should be multiples of 4. I use 2.
"
" * ALE
let g:airline#extensions#ale#enabled = 1
let g:ale_set_highlights = 0
" * LanguageServer
let g:LanguageClient_serverCommands = {
\ 'python': ['pyls'],
\ }
let g:LanguageClient_diagnosticsDisplay = {
\1: {'name': 'Error', 'texthl': 'ALEError', 'signText': 'E>', 'signTexthl': 'ALEErrorSign',},
\2: {"name": "Warning", "texthl": "ALEWarning", "signText": "W>", "signTexthl": "ALEWarningSign",},
\3: {"name": "Information", "texthl": "ALEInfo", "signText": "i-", "signTexthl": "ALEInfoSign",},
\4: {"name": "Hint", "texthl": "ALEInfo", "signText": "--", "signTexthl": "ALEInfoSign",},
\}
" * Configure browser for haskell_doc.vim
let g:haddock_browser = "open"