diff options
author | Bartolomeo Stellato <bartolomeo.stellato@gmail.com> | 2018-08-30 15:40:04 -0400 |
---|---|---|
committer | Bartolomeo Stellato <bartolomeo.stellato@gmail.com> | 2018-08-30 15:40:04 -0400 |
commit | 8bf5d144ed2299e0ecd6fa8f9703647e5c5ef02f (patch) | |
tree | b73aa00660ae038a0a5b2f6931ea7e529cabd0ab /autoload | |
parent | ea01cc708b4beed3831a10065664c84dba68b5dc (diff) | |
download | ale-8bf5d144ed2299e0ecd6fa8f9703647e5c5ef02f.zip |
Started adding julia languageserver
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/julia.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/autoload/ale/julia.vim b/autoload/ale/julia.vim new file mode 100644 index 00000000..a6c0ee4a --- /dev/null +++ b/autoload/ale/julia.vim @@ -0,0 +1,21 @@ +" Set just so tests can override it. +let g:__ale_julia_project_filenames = ['.git/HEAD'] +function! ale#julia#FindProjectRoot(buffer) abort + for l:project_filename in g:__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, ':h') + + " Correct .git path detection. + if fnamemodify(l:path, ':t') is# '.git' + let l:path = fnamemodify(l:path, ':h') + endif + + return l:path + endif + endfor + + return '' +endfunction + |