8000 GitHub - zachcoyle/coc-pyright: Pyright for Vim/Neovim, works with coc.nvim
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zachcoyle/coc-pyright

 
 

Repository files navigation

coc-pyright

Pyright extension for coc.nvim

1

Install

:CocInstall coc-pyright

Features

The extension supports many time-saving language features including:

  • Intelligent type completion of keywords, symbols, and import names appears when editing
  • Import statements are automatically inserted when necessary for type completions
  • Signature completion tips help when filling in arguments for a call
  • Hover over symbols to provide type information and doc strings
  • Find Definitions to quickly go to the location of a symbol’s definition
  • Find References to find all references to a symbol within a code base
  • Rename Symbol to rename all references to a symbol within a code base
  • Find Symbols within the current document or within the entire workspace
  • Organize Imports command for automatically ordering imports according to PEP8 rules
  • Type stub generation for third-party libraries

Built-in Type Stubs

Pyright includes a recent copy of the stdlib type stubs from Typeshed. It can be configured to use another (perhaps more recent or modified) copy of the Typeshed type stubs. Of course, it also works with custom type stub files that are part of your project.

Commands

  • pyright.organizeimports: Organize imports
  • pyright.createtypestub: Creates Type Stubs with given module name

Configurations

  • python.analysis.typeshedPaths: Paths to look for typeshed modules, default: []
  • python.pythonPath: Path to Python, default: python
  • python.venvPath: Path to folder with a list of Virtual Environments, default: ""
  • pyright.disableLanguageServices: Disables type completion, definitions and references, default: false

Pyright supports configuration files that provide granular control over settings. For more details, refer to the README on the Pyright GitHub site.

License

MIT


This extension is created by create-coc-extension

About

Pyright for Vim/Neovim, works with coc.nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.3%
  • Shell 16.6%
  • JavaScript 15.5%
  • Python 2.6%
0