summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorTomáš Janoušek <tomi@nomi.cz>2022-02-02 01:28:52 +0000
committerGitHub <noreply@github.com>2022-02-02 10:28:52 +0900
commitda1e4dcd1e5ebf340b1edbedb18dc2ba139e6e40 (patch)
treed6698ad5355f31d3108c2bb3b157ac5ac6128a72 /ale_linters
parent5087246c8223712fa0097098e910951aba8603fb (diff)
downloadale-da1e4dcd1e5ebf340b1edbedb18dc2ba139e6e40.zip
Allow to configure haskell-language-server LSP config (#4038)
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/haskell/hls.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/haskell/hls.vim b/ale_linters/haskell/hls.vim
index ae0556a4..7f9efc38 100644
--- a/ale_linters/haskell/hls.vim
+++ b/ale_linters/haskell/hls.vim
@@ -4,6 +4,7 @@
" <devildead13@gmail.com>). It search more project root files.
"
call ale#Set('haskell_hls_executable', 'haskell-language-server-wrapper')
+call ale#Set('haskell_hls_config', {})
function! ale_linters#haskell#hls#FindRootFile(buffer) abort
let l:serach_root_files = [
@@ -60,4 +61,5 @@ call ale#linter#Define('haskell', {
\ 'command': function('ale_linters#haskell#hls#GetCommand'),
\ 'executable': {b -> ale#Var(b, 'haskell_hls_executable')},
\ 'project_root': function('ale_linters#haskell#hls#GetProjectRoot'),
+\ 'lsp_config': {b -> ale#Var(b, 'haskell_hls_config')},
\})