Commit 0b2008a
committed
feat(findNvim): version parsing robustness
Problem:
Version parsing makes some assumptions about the `nvim -v` output that
could be more robust. For example,
- "NVIM" may change to "Nvim": neovim/neovim@98ba65b
- "v" is not guaranteed to precede the version
Solution:
- match case-insensitive "NVIM"
- match "v?" instead of "v"
- Note: `--api-info` is not used because it is a big payload (thus
requires streamed decoding, thus more complex code).1 parent ba4c247 commit 0b2008a
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments