e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
13 lines
446 B
VimL
13 lines
446 B
VimL
" Author: Dan Loman <https://github.com/namolnad>
|
|
" Description: Support for sourcekit-lsp https://github.com/apple/sourcekit-lsp
|
|
|
|
call ale#Set('sourcekit_lsp_executable', 'sourcekit-lsp')
|
|
|
|
call ale#linter#Define('swift', {
|
|
\ 'name': 'sourcekitlsp',
|
|
\ 'lsp': 'stdio',
|
|
\ 'executable': {b -> ale#Var(b, 'sourcekit_lsp_executable')},
|
|
\ 'command': '%e',
|
|
\ 'project_root': function('ale#swift#FindProjectRoot'),
|
|
\ 'language': 'swift',
|
|
\})
|