mirror of
https://github.com/amix/vimrc
synced 2025-09-15 08:35:01 +08:00
Update Ale.
This commit is contained in:
5
sources_non_forked/ale/ale_linters/haskell/cspell.vim
Normal file
5
sources_non_forked/ale/ale_linters/haskell/cspell.vim
Normal file
@ -0,0 +1,5 @@
|
||||
scriptencoding utf-8
|
||||
" Author: David Houston <houstdav000>
|
||||
" Description: cspell support for Haskell files.
|
||||
|
||||
call ale#handlers#cspell#DefineLinter('haskell')
|
@ -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')},
|
||||
\})
|
||||
|
Reference in New Issue
Block a user