coc-pyright 1.1.267 → 1.1.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +15 -9
  2. package/lib/index.js +48129 -47802
  3. package/package.json +32 -7
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # coc-pyright
2
2
 
3
3
  <!-- markdownlint-disable no-inline-html -->
4
+
4
5
  <a href="https://github.com/sponsors/fannheyward"><img src="https://user-images.githubusercontent.com/345274/133218454-014a4101-b36a-48c6-a1f6-342881974938.png" alt="GitHub Sponsors" /></a>
5
6
  <a href="https://patreon.com/fannheyward"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Patreon donate button" /></a>
6
7
  <a href="https://paypal.me/fannheyward"><img src="https://user-images.githubusercontent.com/345274/104303610-41149f00-5505-11eb-88b2-5a95c53187b4.png" alt="PayPal donate button" /></a>
@@ -14,7 +15,7 @@
14
15
 
15
16
  `:CocInstall coc-pyright`
16
17
 
17
- Note: Pyright may not work as expected if can't detect *project root* correctly, check [#521](https://github.com/fannheyward/coc-pyright/issues/521#issuecomment-858530052) and [Using workspaceFolders](https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders#resolve-workspace-folder) in coc.nvim.
18
+ Note: Pyright may not work as expected if can't detect _project root_ correctly, check [#521](https://github.com/fannheyward/coc-pyright/issues/521#issuecomment-858530052) and [Using workspaceFolders](https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders#resolve-workspace-folder) in coc.nvim.
18
19
 
19
20
  ## Commands
20
21
 
@@ -72,6 +73,12 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
72
73
  | pyright.completion.importSupport | Enable `python-import` completion source support | true |
73
74
  | pyright.completion.snippetSupport | Enable completion snippets support | true |
74
75
  | pyright.organizeimports.provider | Organize imports provider, `pyright` or `isort` | pyright |
76
+ | pyright.inlayHints.enable | Enable inlay hints feature | true |
77
+ | pyright.inlayHints.functionReturnTypes | Enable inlay hints for function return types | true |
78
+ | pyright.inlayHints.variableTypes | Enable inlay hints for variable types | true |
79
+ | pyright.testing.provider | Provider for testing, supports `unittest` and `pytest` | unittest |
80
+ | pyright.testing.unittestArgs | Arguments passed to unittest | [] |
81
+ | pyright.testing.pytestArgs | Arguments passed to pytest | [] |
75
82
 
76
83
  Additional configuration options can be found in [package.json](./package.json).
77
84
 
@@ -93,15 +100,14 @@ files for well-known packages may also be obtained from 3rd party, for example:
93
100
  ## Conda setup
94
101
 
95
102
  1. Create the following file:
96
- ```
97
- #!/bin/bash
98
- python "$@"
99
- ```
103
+
104
+ ```sh
105
+ #!/bin/bash
106
+ python "$@"
107
+ ```
108
+
100
109
  2. Make it executable: `chmod +x $path`
101
- 3. Add the following to your `coc-settings.json`:
102
- ```
103
- "python.pythonPath": "<PUT PATH HERE>"
104
- ```
110
+ 3. Set `python.pythonPath` in your `coc-settings.json`: `"python.pythonPath": "<PUT PATH HERE>"`
105
111
  4. Activate the environment before starting vim
106
112
 
107
113
  This way python from your currently activated environment will be used