{"repo":"relastle/vim-nayvy","free":true,"listed":false,"github":"https://github.com/relastle/vim-nayvy","clone":"git clone https://github.com/relastle/vim-nayvy.git","description":":new_moon: Enriching python coding in Vim :snake:","language":"Python","stars":67,"topics":["vim","neovim","python","ultisnips","ale","docstrings","docstring","coc-sources","coc","snippets"],"license":"MIT","category":"productivity","readme_excerpt":"vim-nayvy Enriching python coding. 1. Installation Using vim-plug 2. Usage 2.1 Commands NayvyImports NayvyImportFZF NayvyTestGenerate & NayvyTestGenerateFZF 2.2 Use with other plugin. 2.2.1 ALE ALE, Asynchronous Lint Engine, is one of the SOTA plugins of Vim. Even though LSP is becoming more and more popular, the plugin provides brilliant features, including great abstraction against code fixer. Thus, vim-nayvy provides code fixer funciton nayvy#ale fixer . Vim script Below is a example of using nayvy#ale fixer with autopep8 and isort. And here is demonstrations. 2.2.2 ultisnips Auto import when snippet expansion vim-nayvy provides auto import function used with UltiSnips' snippet. UltiSnips provides post expand trigger for each single snippet, which executes prerefined command when the snippet is expanded. The snippet fragment below import auto import function from nayvy , and defines pretty print post fix completion that add import statement from pprint import pprint as pp if not exists. (The sample snippet is here and tested with a vader script) Note that three arguments of auto import are - Snip object of UltiSnips. you should always pass snip - Import statement string - The import level - 0: Standard library imports. - 1: Related third party imports. - 2: Local application/library specific imports. (cf. https://www.python.org/dev/peps/pep-0008/#imports) And here is demonstrations. Pydocstring expansionn The snippet above enables the pydocstring expansion when the triple-","default_branch":null,"files":null,"tree":[],"storefront":"/r/relastle","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/relastle/vim-nayvy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}