-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathnimlsp.nimble
More file actions
29 lines (22 loc) · 850 Bytes
/
nimlsp.nimble
File metadata and controls
29 lines (22 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Package
version = "0.4.7"
author = "PMunch"
description = "Nim Language Server Protocol - nimlsp implements the Language Server Protocol"
license = "MIT"
srcDir = "src"
bin = @["nimlsp", "nimlsp_debug"]
# Dependencies
requires "nim >= 1.0.0"
requires "jsonschema >= 0.2.1"
requires "asynctools >= 0.1.1"
# nimble test does not work for me out of the box
#task test, "Runs the test suite":
#exec "nim c -r tests/test_messages.nim"
# exec "nim c -d:debugLogging -d:jsonSchemaDebug -r tests/test_messages2.nim"
task debug, "Builds the language server":
exec "nim c --threads:on -d:nimcore -d:nimsuggest -d:debugCommunication -d:debugLogging -o:nimlsp src/nimlsp"
before test:
exec "nimble build"
task findNim, "Tries to find the current Nim installation":
echo NimVersion
echo currentSourcePath