Compare commits

...

4 Commits

Author SHA1 Message Date
a63673b783
Re-enable haskell doc 2018-06-15 19:40:09 +02:00
2ed664cb27
Remap LSP bindings 2018-06-15 19:39:59 +02:00
1e62563e18
Use ALE for diagnostics 2018-06-15 19:39:52 +02:00
548e45da01
Use proper lusty 2018-06-15 19:39:17 +02:00
2 changed files with 10 additions and 4 deletions

View File

@ -33,7 +33,7 @@ function! HaskellDocCurrentWord()
endfunction
" done by LSP now
" nmap <F7> :call HaskellDocCurrentWord()<CR><CR>
nmap <F7> :call HaskellDocCurrentWord()<CR><CR>
nmap <silent> <F3> :silent update <bar> HsimportModule<CR>
nmap <silent> <F4> :silent update <bar> HsimportSymbol<CR>
@ -62,9 +62,12 @@ let g:LanguageClient_autoStart = 1
let g:LanguageClient_serverCommands = {
\ 'haskell': ['hie', '--lsp', '-d', '-l', $HOME.'/lang-server.log'],
\ }
" we use ALE instead
let g:LanguageClient_diagnosticsEnable = 0
nnoremap <silent> <F7> :call LanguageClient#textDocument_hover()<CR>
nnoremap <leader>lc :call LanguageClient_contextMenu()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <C-F6> :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> <F8> :call LanguageClient#textDocument_rename()<CR>
" deoplete
@ -77,7 +80,7 @@ call deoplete#enable()
let g:ghcmod_hlint_options = ['--ignore=Eta reduce $']
" ALE
let g:ale_enabled = 0 " LSP does it
let g:ale_enabled = 1
let g:ale_linters = {'haskell':['ghc-mod', 'hdevtools'], 'c':['clang']}
" let g:ale_fixers = {
" \ 'go': ['gofmt', 'goimports'],

5
vimrc
View File

@ -41,11 +41,11 @@ Plug 'nathanaelkane/vim-indent-guides'
Plug 'xolox/vim-misc'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'tpope/vim-rhubarb'
Plug 'sjbach/lusty'
if has("nvim")
Plug 'iCyMind/NeoSolarized'
Plug 'vim-airline/vim-airline'
else
Plug 'vim-scripts/LustyJuggler'
Plug 'powerline/powerline', {
\ 'branch': 'develop',
\ 'do': 'python3 setup.py install --user',
@ -166,6 +166,9 @@ if !has("nvim")
let g:LustyJugglerSuppressRubyWarning = 1
endif
" lustyexplorer
set hidden
" LSP
let g:LanguageClient_autoStart = 0