e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
19 lines
501 B
Text
19 lines
501 B
Text
Before:
|
|
runtime ale_linters/nim/nimlsp.vim
|
|
call ale#test#SetDirectory('/testplugin/test')
|
|
|
|
After:
|
|
if isdirectory(g:dir . '/.git')
|
|
call delete(g:dir . '/.git', 'd')
|
|
endif
|
|
|
|
call ale#test#RestoreDirectory()
|
|
call ale#linter#Reset()
|
|
|
|
|
|
Execute(Detect root of nim project with .git/ correctly):
|
|
call ale#test#SetFilename('test-files/nim/with-git/src/source.nim')
|
|
call mkdir(g:dir . '/.git')
|
|
AssertEqual
|
|
\ ale#path#Simplify(g:dir),
|
|
\ ale_linters#nim#nimlsp#GetProjectRoot(bufnr(''))
|