1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Fix lsp support for haskell, javascript and typescript. (#1894)

* Fix lsp for haskell

* Use hie-wrapper in haskell lsp

* Fix typo of javascript and typescript

* Remove lsp specification in haskell.vim
This commit is contained in:
Jinxuan Zhu 2018-07-04 09:32:07 -04:00 committed by Wang Shidong
parent 0677850f06
commit 07f8cacb13
2 changed files with 3 additions and 4 deletions

View File

@ -31,7 +31,6 @@ function! SpaceVim#layers#lang#haskell#config() abort
if SpaceVim#layers#lsp#check_filetype('haskell')
call SpaceVim#mapping#gd#add('haskell',
\ function('SpaceVim#lsp#go_to_def'))
call SpaceVim#lsp#reg_server('haskell', ['hie', '--lsp'])
endif
augroup SpaceVim_lang_haskell

View File

@ -80,8 +80,8 @@ endfunction
let s:enabled_fts = []
let s:lsp_servers = {
\ 'javascript' : ['typescript-language-server', '--stdio'],
\ 'haskell' : ['hie', '--lsp'],
\ 'typescript' : ['typescript-language-server', '--stdio'],
\ 'haskell' : ['hie-wrapper', '--lsp'],
\ 'c' : ['clangd'],
\ 'cpp' : ['clangd'],
\ 'objc' : ['clangd'],
@ -93,7 +93,7 @@ let s:lsp_servers = {
\ 'html' : ['html-languageserver', '--stdio'],
\ 'php' : ['php', g:spacevim_plugin_bundle_dir . 'repos/github.com/felixfbecker/php-language-server/bin/php-language-server.php'],
\ 'julia' : ['julia', '--startup-file=no', '--history-file=no', '-e', 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'],
\ 'typescript' : ['javascript-typescript-stdio']
\ 'javascript' : ['javascript-typescript-stdio']
\ }
function! SpaceVim#layers#lsp#set_variable(var) abort