summaryrefslogtreecommitdiff
path: root/ale_linters/swift/sourcekitlsp.vim
blob: 560893bff400c5e10a392eda51d4b44bc76248d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
" 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',
\})