diff options
author | Jerko Steiner <jerko.steiner@gmail.com> | 2019-10-18 01:32:31 +0900 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-10-17 17:32:31 +0100 |
commit | e5a4c82917a17e759350d5137fb1afbf3e933c2a (patch) | |
tree | 39cf59399d9d8a422c64b4c14dc141c208dedf08 /test/test_nimlsp_project_root.vader | |
parent | f4070f6c43b3cb2e7463d8426a68d5a726991288 (diff) | |
download | ale-e5a4c82917a17e759350d5137fb1afbf3e933c2a.zip |
Add support for nimlsp (#2815)
* Add support for nimlsp.vim
* Add test and docs for nimlsp
* Add nimlsp to supported-tools.md
* Add nimlsp to doc/ale-supported-languages-and-tools.txt
Diffstat (limited to 'test/test_nimlsp_project_root.vader')
-rw-r--r-- | test/test_nimlsp_project_root.vader | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_nimlsp_project_root.vader b/test/test_nimlsp_project_root.vader new file mode 100644 index 00000000..e7027575 --- /dev/null +++ b/test/test_nimlsp_project_root.vader @@ -0,0 +1,19 @@ +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('nim-test-files/with-git/src/source.nim') + call mkdir(g:dir . '/.git') + AssertEqual + \ ale#path#Simplify(g:dir), + \ ale_linters#nim#nimlsp#GetProjectRoot(bufnr('')) |