summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-09-10 17:24:04 +0100
committerGitHub <noreply@github.com>2018-09-10 17:24:04 +0100
commit99e9417ef901824200040c6a2d3e84f2e0ff4b8e (patch)
treeac65bf64cf940aefab2cc2e513b1baf83225354c /autoload
parentbfba216e617dd02d0dddcf390b3ec2eb0ab3e7e4 (diff)
parent169e4b67d3762cf03bd11eb8c2f6e11a43c45919 (diff)
downloadale-99e9417ef901824200040c6a2d3e84f2e0ff4b8e.zip
Add support for Julia Language Server (#1894)
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/julia.vim19
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