Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Support ALE #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ale_linters/fsharp/syntax.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
if exists('g:loaded_fsharp_ale_linter')
finish
endif
let g:loaded_fsharp_ale_linter = 1

if !has('python3') && !has('python')
finish
endif

function! ale_linters#fsharp#syntax#Handle(buffer, lines) abort
return fsharpbinding#python#CurrentErrors()
endfunction
"
call ale#linter#Define('fsharp',{
\ 'name': 'syntax',
\ 'executable': 'mono',
\ 'command': 'true',
\ 'callback': 'ale_linters#fsharp#syntax#Handle',
\})

" vim: set et sts=4 sw=4: