X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/ale_linters/swift/sourcekitlsp.vim diff --git a/.vim/bundle/ale/ale_linters/swift/sourcekitlsp.vim b/.vim/bundle/ale/ale_linters/swift/sourcekitlsp.vim new file mode 100644 index 00000000..a403dcc1 --- /dev/null +++ b/.vim/bundle/ale/ale_linters/swift/sourcekitlsp.vim @@ -0,0 +1,14 @@ +" Author: Dan Loman +" 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', +\ 'aliases': ['sourcekit'], +\ 'lsp': 'stdio', +\ 'executable': {b -> ale#Var(b, 'sourcekit_lsp_executable')}, +\ 'command': '%e', +\ 'project_root': function('ale#swift#FindProjectRoot'), +\ 'language': 'swift', +\})