https://github.com/chrisgrieser/nvim-kickstart-python

A launch point for your nvim configuration for Python

https://github.com/chrisgrieser/nvim-kickstart-python

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: researchgate.net
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.7%) to scientific vocabulary

Keywords

nvim-config nvim-configuration python-ide

Keywords from Contributors

projection archival interactive alfred-workflow pdf-summarization reference-management text-object generic sequences agents
Last synced: 7 months ago · JSON representation ·

Repository

A launch point for your nvim configuration for Python

Basic Info
  • Host: GitHub
  • Owner: chrisgrieser
  • License: mit
  • Language: Lua
  • Default Branch: main
  • Homepage:
  • Size: 4.83 MB
Statistics
  • Stars: 154
  • Watchers: 5
  • Forks: 12
  • Open Issues: 0
  • Releases: 0
Archived
Topics
nvim-config nvim-configuration python-ide
Created over 2 years ago · Last pushed 10 months ago
Metadata Files
Readme Funding License Citation

README.md

nvim-kickstart-python

A launch point for your nvim config for python.

Similar to kickstart.nvim, but specifically for python.

Motivation

While there are quite a few great nvim distros and nvim starter configs out there, one thing I somewhat missed was a base config for specific languages. I recently started to learn python and was missing a minimal example what the state-of-the-art nvim setup specifically for python is.

After figuring most of it out, I decided to publish this config for others to use. It is intended as a launch point for python devs switching to nvim, or as a reference for nvim users who want to start doing python development.

Philosophy & Features

  • This is not a nvim distro, this is a minimal nvim config specifically for python. It's intended as a starting point for creating your own config.
  • Requirement: nvim 0.10.
  • ~15 plugins, ~350 lines, everything in one single file.
  • Includes detailed comments explaining what the config does.
  • The config can be fully bootstrapped: all plugins and tools are automatically installed on startup.
  • Uses the current state-of-the-art of the nvim plugin ecosystem.
  • Includes some common tooling for python development:
    • LSP (Completion, Typing): pyright
    • Linting (Diagnostics): ruff
    • Debugger: debugpy
    • Embedded REPL: ipython (if not installed, falls back to python3)
  • In addition, this config includes editing utilities specifically for python, like for example docstrings creation, selecting virtual environments, or auto-converting f-strings.

Recommendation

Go through the kickstart-python.lua, it is commented in detail.

You can copypaste the config into you current init.lua to use it as a starting point for your regular config, or you can copypaste parts of it into your existing config.

Download

kickstart-python requires at least nvim 0.10.

Download the kickstart-python.lua file and run Neovim with it:

```bash

download the config

curl --remote-name "https://raw.githubusercontent.com/chrisgrieser/nvim-kickstart-python/main/kickstart-python.lua"

start neovim with the config, opening a file foobar.py

(any existing config you are using remains untouched)

nvim -u kickstart-python.lua foobar.py ```

The config automatically installs all the plugins and tooling needed. <!-- vale Google.FirstPerson = NO -->

Syntax Highlighting

Is provided by the nvim-treesitter plugin and/or the semshi plugin. The latter requires pynvim (python3 -m pip install pynvim) to be installed.

Both provide better highlighting, Treesitter is considered the more "modern" approach. Treesitter covers some cases semshi does not and vice versa. Have a look at the comparison to decide for yourself which one to use. The config uses Treesitter as the more modern approach.

Additional plugins of interest

These plugins are not included in the config, but they are worth mentioning, as some people might be interested in them: - nvim-various-textobjs: various indentation-based text objects - NotebookNavigator: Jupyter Notebook emulation - magma.nvim: Jupyter Notebook integration - ropify.nvim: ropify integration - nvim-conda: conda environment selector - nvim-lspimport: Automatically resolves imports for pyright. - jupytext.nvim: Convert Jupyter Notebooks to code and back. - py-requirements.nvim: Helps manage python requirements. - venv-selector: switch virtual environments - python-import

Recommended Citation

You can cite this software project as:

txt Grieser, C. (2023). nvim-kickstart-python [Computer software]. https://github.com/chrisgrieser/nvim-kickstart-python

Credits

kickstart.nvim as an example how to do this.

In my day job, I am a sociologist studying the social mechanisms underlying the digital economy. For my PhD project, I investigate the governance of the app economy and how software ecosystems manage the tension between innovation and compatibility. If you are interested in this subject, feel free to get in touch.

Buy Me a Coffee at ko-fi.com

Owner

  • Name: Chris Grieser
  • Login: chrisgrieser
  • Kind: user
  • Location: Berlin, Germany
  • Company: Technical University of Berlin

Researcher in sociology & software developer

Citation (CITATION.cff)

# vim: filetype=yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/schema.json
# DOCS https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md
#───────────────────────────────────────────────────────────────────────────────

message: If you use this software, please cite it using these metadata.
title: nvim-kickstart-python
abstract: A launch point for your nvim configuration for Python.
type: software
authors:
  - family-names: Grieser
    given-names: Christopher
    orcid: "https://orcid.org/0000-0002-0767-9496"
commit: "ecc7572"
date-released: "2023-11-28"
repository-code: "https://github.com/chrisgrieser/nvim-kickstart-python"
keywords:
  - nvim
  - starter configuration
  - python
cff-version: 1.2.0
license: MIT

GitHub Events

Total
  • Issues event: 2
  • Watch event: 34
  • Delete event: 2
  • Push event: 25
  • Pull request event: 4
  • Fork event: 9
  • Create event: 2
Last Year
  • Issues event: 2
  • Watch event: 34
  • Delete event: 2
  • Push event: 25
  • Pull request event: 4
  • Fork event: 9
  • Create event: 2

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 94
  • Total Committers: 5
  • Avg Commits per committer: 18.8
  • Development Distribution Score (DDS): 0.085
Past Year
  • Commits: 57
  • Committers: 5
  • Avg Commits per committer: 11.4
  • Development Distribution Score (DDS): 0.14
Top Committers
Name Email Commits
Chris Grieser 7****r 86
Jose Pedro Oliveira j****s@g****m 4
dependabot[bot] 4****] 2
tkreuder t****r@g****m 1
dwgrth 3****h 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 7
  • Total pull requests: 8
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 5
  • Total pull request authors: 4
  • Average comments per issue: 1.29
  • Average comments per pull request: 0.5
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 5
  • Pull requests: 8
  • Average time to close issues: about 7 hours
  • Average time to close pull requests: about 1 hour
  • Issue authors: 3
  • Pull request authors: 4
  • Average comments per issue: 1.2
  • Average comments per pull request: 0.5
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • jpoliv (3)
  • meuter (1)
  • nmvega (1)
  • milisims (1)
  • tkreuder (1)
Pull Request Authors
  • jpoliv (8)
  • dependabot[bot] (4)
  • tkreuder (2)
  • dwgrth (2)
Top Labels
Issue Labels
todo: nvim 0.11 (1)
Pull Request Labels
dependencies (4) github_actions (2)