mirror of
https://github.com/dense-analysis/ale
synced 2024-12-19 12:55:41 +00:00
864d0861e4
* [linter] Add LSP support for Swift via sourcekit-lsp
14 lines
446 B
VimL
14 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',
|
|
\})
|