diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-09-10 17:24:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 17:24:04 +0100 |
commit | 99e9417ef901824200040c6a2d3e84f2e0ff4b8e (patch) | |
tree | ac65bf64cf940aefab2cc2e513b1baf83225354c /autoload | |
parent | bfba216e617dd02d0dddcf390b3ec2eb0ab3e7e4 (diff) | |
parent | 169e4b67d3762cf03bd11eb8c2f6e11a43c45919 (diff) | |
download | ale-99e9417ef901824200040c6a2d3e84f2e0ff4b8e.zip |
Add support for Julia Language Server (#1894)
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/julia.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/autoload/ale/julia.vim b/autoload/ale/julia.vim new file mode 100644 index 00000000..18dd9ad7 --- /dev/null +++ b/autoload/ale/julia.vim @@ -0,0 +1,19 @@ +" Author: Bartolomeo Stellato bartolomeo.stellato@gmail.com +" Description: Functions for integrating with Julia tools + +" Find the nearest dir containing a julia project +let s:__ale_julia_project_filenames = ['REQUIRE', 'Manifest.toml', 'Project.toml'] + +function! ale#julia#FindProjectRoot(buffer) abort + for l:project_filename in s:__ale_julia_project_filenames + let l:full_path = ale#path#FindNearestFile(a:buffer, l:project_filename) + + if !empty(l:full_path) + let l:path = fnamemodify(l:full_path, ':p:h') + + return l:path + endif + endfor + + return '' +endfunction |