Add support for fatou (#5159)

Add a linter that runs the fatou language server (`fatou lsp`) for Julia
diagnostics, and a fixer that formats Julia with `fatou format`.
This commit is contained in:
Johan Larsson
2026-08-19 10:46:57 +09:00
committed by GitHub
parent 5c8ca023e6
commit 42d1062011
11 changed files with 117 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
" Author: Johan Larsson <johan@jolars.co>
" Description: A language server, formatter, and linter for Julia
call ale#Set('julia_fatou_executable', 'fatou')
function! ale_linters#julia#fatou#GetProjectRoot(buffer) abort
let l:config = ale#path#FindNearestFile(a:buffer, 'fatou.toml')
return !empty(l:config) ? fnamemodify(l:config, ':h') : ''
endfunction
call ale#linter#Define('julia', {
\ 'name': 'fatou',
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'julia_fatou_executable')},
\ 'command': '%e lsp',
\ 'project_root': function('ale_linters#julia#fatou#GetProjectRoot'),
\})