mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 18:14:01 +08:00
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
This commit is contained in:
19
test/test_nimlsp_project_root.vader
Normal file
19
test/test_nimlsp_project_root.vader
Normal file
@@ -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(''))
|
||||
Reference in New Issue
Block a user