[lsp] Add Swift / SourceKit-LSP support (#2420)

* [linter] Add LSP support for Swift via sourcekit-lsp
This commit is contained in:
Dan Loman authored and w0rp committed 2019-04-08 16:25:30 +01:00
1 parent 9a0ece1ecb
commit 864d0861e4
7 files changed
+65

No files matched your search

+13
View File
@@ -0,0 +1,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',
\})