vimrc: Add Haskell LSP
This commit is contained in:
parent
1980c17f95
commit
82ed66a7d7
1 changed files with 14 additions and 0 deletions
14
.vimrc
14
.vimrc
|
|
@ -62,6 +62,20 @@ inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" LSP Stuff "
|
" LSP Stuff "
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Haskell
|
||||||
|
if executable('haskell-language-server-wrapper')
|
||||||
|
au User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'haskell-language-server-wrapper',
|
||||||
|
\ 'cmd': {server_info->['haskell-language-server-wrapper', '--lsp']},
|
||||||
|
\ 'root_uri':{server_info->lsp#utils#path_to_uri(
|
||||||
|
\ lsp#utils#find_nearest_parent_file_directory(
|
||||||
|
\ lsp#utils#get_buffer_path(),
|
||||||
|
\ ['.cabal', 'stack.yaml', 'cabal.project', 'package.yaml', 'hie.yaml', '.git'],
|
||||||
|
\ ))},
|
||||||
|
\ 'whitelist': ['haskell', 'lhaskell'],
|
||||||
|
\ })
|
||||||
|
endif
|
||||||
|
|
||||||
" Python
|
" Python
|
||||||
if executable('pylsp')
|
if executable('pylsp')
|
||||||
au User lsp_setup call lsp#register_server({
|
au User lsp_setup call lsp#register_server({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue