tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
vimPlugins.coq_nvim: update venv patch
Gaetan Lepage
2 years ago
3328bb30
dec68826
+9
-9
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
vim
plugins
patches
coq_nvim
emulate-venv.patch
+9
-9
pkgs/applications/editors/vim/plugins/patches/coq_nvim/emulate-venv.patch
···
1
1
diff --git a/coq/__main__.py b/coq/__main__.py
2
2
-
index 5a6c6fd2..e0d9eec8 100644
2
2
+
index dd40afc1..36bcca21 100644
3
3
--- a/coq/__main__.py
4
4
+++ b/coq/__main__.py
5
5
@@ -78,7 +78,7 @@ _EXEC_PATH = Path(executable)
6
6
_EXEC_PATH = _EXEC_PATH.parent.resolve(strict=True) / _EXEC_PATH.name
7
7
_REQ = REQUIREMENTS.read_text()
8
8
-
8
8
+
9
9
-_IN_VENV = _RT_PY == _EXEC_PATH
10
10
+_IN_VENV = True
11
11
-
12
12
-
11
11
+
12
12
+
13
13
if command == "deps":
14
14
@@ -152,7 +152,7 @@ elif command == "run":
15
15
try:
···
21
21
else:
22
22
import pynvim_pp
23
23
diff --git a/coq/consts.py b/coq/consts.py
24
24
-
index 5a027fe9..a3e0c5a4 100644
24
24
+
index 804e92ab..5c090a93 100644
25
25
--- a/coq/consts.py
26
26
+++ b/coq/consts.py
27
27
-
@@ -9,7 +9,7 @@ TOP_LEVEL = Path(__file__).resolve(strict=True).parent.parent
27
27
+
@@ -10,7 +10,7 @@ TOP_LEVEL = Path(__file__).resolve(strict=True).parent.parent
28
28
REQUIREMENTS = TOP_LEVEL / "requirements.txt"
29
29
-
30
30
-
29
29
+
30
30
+
31
31
-VARS = TOP_LEVEL / ".vars"
32
32
+VARS = Path.home() / ".cache/coq_nvim/vars"
33
33
-
33
33
+
34
34
RT_DIR = VARS / "runtime"
35
35
RT_PY = RT_DIR / "Scripts" / "python.exe" if IS_WIN else RT_DIR / "bin" / "python3"