Neovim Starter Kit for Python

  Рет қаралды 17,046

Nerd Signals

Nerd Signals

Күн бұрын

Are you using VS Code or PyCharm for Python development but really want to move to Neovim? Join me in this exciting tutorial where we dive deep into setting up a powerful Python development environment using Neovim! As a full-stack developer and Neovim enthusiast, I've fine-tuned my Neovim configuration specifically for Python development and I’m really excited to share this Starter Kit with you today.
This video will cover:
- Syntax highlighting
- Python LSP
- Auto-completion
- Snippets
- Formatting
- Linting
- Debugging
- Unit testing
Show Notes:
Neovim Starter Kit: github.com/bcampolo/nvim-star...
Neovim Starter Kit for Python: github.com/bcampolo/nvim-star...
Neovim Playlist: • Neovim

Пікірлер: 53
@elu1
@elu1 5 ай бұрын
This is the most comprehensive nvim setup for python that I can find. any word on MacOS testing?
@bjcampolo
@bjcampolo 5 ай бұрын
Thanks! I don't have a Mac but please report back and I'm willing to update the README or if you want to submit a PR I'd be happy to review it.
@elu1
@elu1 5 ай бұрын
Now my Mac is equipped with the neovim IDE, and I can't express enough how deeply appreciative I am of the setup that this and previous videos have shared. The expertise demonstrated in both technical and organizational skills is truly remarkable. Great stuff all around!
@bjcampolo
@bjcampolo 5 ай бұрын
Thank you so much for the kind words. I'm glad the videos were helpful
@baky5372
@baky5372 6 ай бұрын
Love your videos! I never take your full repos but I always snip out all the plugins that I feel will be useful for me. But always grateful for all the effort you put in!
@bjcampolo
@bjcampolo 6 ай бұрын
I'm glad they have been helpful!
@baky5372
@baky5372 6 ай бұрын
​@@bjcampolo Especially grateful for the dap plugin. That was one thing I've missed from IDEs
@nelsonfleig5024
@nelsonfleig5024 2 ай бұрын
Awesome video! Good job and thank you! Learned so much about Neovim configs.
@Watchie1975
@Watchie1975 3 ай бұрын
I finally typed the right thing to get it installed, and I’m excited to see what this can do!
@beauforda.stenberg1280
@beauforda.stenberg1280 6 ай бұрын
Thanks! This is exactly what I was looking for, and needed. That it is so recent, is just pure brilliance. 🙏 👍 💕
@bjcampolo
@bjcampolo 6 ай бұрын
I'm glad you found it helpful!
@LastIntrepidElf
@LastIntrepidElf Ай бұрын
Thanks for the awesome video! Keep up!
@NanoTecked
@NanoTecked 6 ай бұрын
finally a kit to that (me) enjoy the python language. I should to try it out (and to try not to modify it jejeje). Great content!
@downloadkorean3909
@downloadkorean3909 3 ай бұрын
Thank you very much
@mr.bojangles6111
@mr.bojangles6111 4 ай бұрын
This was a great video and very timely - I've been trying to figure out how to even get started with configuring Neovim as a Python IDE, so thank you! I did have a couple of questions about the setup - when you pip install neovim, debugpy and isort, are you doing that in a virtualenv? And, when setting up the debugger with the Python path, would that have to be changed whenever you pointed Neovim at a new virtualenv?
@bjcampolo
@bjcampolo 4 ай бұрын
You can do it in a virtual environment but then you need to make sure everything is pointing to that environment. There are some tips here: vi.stackexchange.com/questions/38456/is-there-a-way-to-have-some-kind-of-virtual-environment-for-neovim stackoverflow.com/questions/61019081/is-it-possible-to-create-nested-virtual-environments-for-python
@enriquealbertoperezdelgado9580
@enriquealbertoperezdelgado9580 4 ай бұрын
Excellent video definitely liked and subscribed. Quick question? Do the python dependencies have to be installed in every python env of every project?
@bjcampolo
@bjcampolo 4 ай бұрын
I'm not a Python expert but I believe they only have to be installed in the environment that Neovim and related plugins are running in.
@pauliusjo
@pauliusjo 6 ай бұрын
help, im on windows and i get error for python3 environment not found in search path or not executable.
@bjcampolo
@bjcampolo 6 ай бұрын
On some Linux distros, python3 is used to differentiate it from Python 2, but on Windows, it is going to just be python instead of python3 and you will need to make sure it is on your PATH environment variable.
@dod_ytent9984
@dod_ytent9984 6 ай бұрын
How do work with Jupyter Notebooks/kernels or conda environments via nvim?
@bjcampolo
@bjcampolo 6 ай бұрын
I don't do much with Jupyter myself, but you can check out this thread which seems to have some useful links: www.reddit.com/r/neovim/comments/wzoa8i/jupyter_notebooks_in_neovim_any_good_way/
@92marjoh
@92marjoh 4 ай бұрын
How well does this setup integrate with virtual envs from pyenv?
@bjcampolo
@bjcampolo 4 ай бұрын
You can try something like this: stackoverflow.com/a/66559305
@AnoopD2013
@AnoopD2013 2 ай бұрын
Great vid .......... and thank you .......... Can you please do another vid on how to use this in virtualenvironment ? Should we do the pip installations for every venv ?
@bjcampolo
@bjcampolo 2 ай бұрын
Great idea! I'll add it to my list
@AnoopD2013
@AnoopD2013 2 ай бұрын
@@bjcampolo Ty
@eduardabramovich1216
@eduardabramovich1216 5 ай бұрын
I'm trying to install which-key but I fail. Hopefully you can add it to the config.
@bjcampolo
@bjcampolo 5 ай бұрын
Yeah I think which key will help with seeing all of your key mappings. I will do a future video on it. In the meantime you can try running :nmap to see all of your key mappings that start with leader
@eduardabramovich1216
@eduardabramovich1216 5 ай бұрын
@@bjcampolo Thanks, as a neovim newbie learning the combinations is daunting. Great advice.
@eduardabramovich1216
@eduardabramovich1216 5 ай бұрын
Now I'm facing another problem, since I have different virtualenvs for different projects, I have to install the same tools in all of them, like isort, debugpy and others. I think this is a bit problematic. Anyway, I will have to do it.
@eduardabramovich1216
@eduardabramovich1216 5 ай бұрын
Not sure if you talked about this, but I created a specific virtualenv for nvim and in there I installed isort, neovim and debugpy and then I set in the "options.lua" file the setting: vim.g.python3_host_prog = 'path-to-virtualenv-py-bin'. And now i don't have to install the tools in all my envs.
@bjcampolo
@bjcampolo 5 ай бұрын
@@eduardabramovich1216 That's great! There are some additional ideas in this stack overflow: stackoverflow.com/questions/61019081/is-it-possible-to-create-nested-virtual-environments-for-python
@dominiquekostler238
@dominiquekostler238 28 күн бұрын
Have you tried using Ruff lsp?
@bjcampolo
@bjcampolo 28 күн бұрын
I tried it during my initial research/setup and it seemed like it was missing some of the inline error messages that I would expect from an LSP. It is possible that I had something misconfigured though.
@akshatsingh6036
@akshatsingh6036 29 күн бұрын
after adding pylint, black to the lua file and opening a new file using nvim i am getting error that pylint and other packages failed to install
@bjcampolo
@bjcampolo 28 күн бұрын
Can you provide the exact error message you are getting?
@akshatsingh6036
@akshatsingh6036 24 күн бұрын
@@bjcampolo pylint: failed to install, this error is showing on opening of nvim where we write commands like :wq
@bjcampolo
@bjcampolo 23 күн бұрын
@akshatsingh6036 If you run :Mason does it show pylint as having a problem installing? What error does it give? You can try navigating to the pylint row in Mason and clicking the i key to try to install it again and see if it gives an error.
@jlaviews
@jlaviews 3 ай бұрын
Does this work with a python environment? Every video seems to only work with a system wide python
@bjcampolo
@bjcampolo 3 ай бұрын
It should work but I haven't tried myself. This post may have some helpful tips: vi.stackexchange.com/questions/38456/is-there-a-way-to-have-some-kind-of-virtual-environment-for-neovim
@redbossman
@redbossman 6 ай бұрын
what font are u using?
@bjcampolo
@bjcampolo 6 ай бұрын
This is Hack Nerd Font
@redbossman
@redbossman 6 ай бұрын
ok thanks
@zephyrthesearchrescuedog8358
@zephyrthesearchrescuedog8358 6 ай бұрын
I think there's a lot that could be cut out of this if you used ruff lsp for formatting, linting, import sorting
@bjcampolo
@bjcampolo 6 ай бұрын
I briefly tried ruff and it didn't "feel" quite right, but maybe I didn't try it in combination with pyright. Do you have a config you can share?
@temiloluwaadebowale2553
@temiloluwaadebowale2553 6 ай бұрын
Can you share your config? I've been trying to use ruff for formatting, linting, and sorting of imports.
@zephyrthesearchrescuedog8358
@zephyrthesearchrescuedog8358 6 ай бұрын
I'm using LazyVim distro with the ruff-lsp installed from Mason. Lazy uses conform.nvim which can use lsp as a fall back for formatting. Since I never installed a python formatter it falls back to ruff lsp. I have pyright installed alongside it
@NanoTecked
@NanoTecked 6 ай бұрын
i hope that kit has support to pandas cuz i love it :3
@bjcampolo
@bjcampolo 6 ай бұрын
If it doesn't work with pandas please let me know!
@TheRich107
@TheRich107 7 күн бұрын
Ruff > black Written in rust btw
@health_doc
@health_doc 12 күн бұрын
Weird ai voice
@bjcampolo
@bjcampolo 12 күн бұрын
@@health_doc thanks I've been practicing
Neovim Starter Kit for Java
11:12
Nerd Signals
Рет қаралды 6 М.
The perfect Neovim setup for Python
15:11
Dreams of Code
Рет қаралды 205 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 35 МЛН
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
nvim-dbee: Interactive Database Client Within Neovim
7:27
CheesedUp
Рет қаралды 2,5 М.
Vim Motions for absolute beginners!!!
7:25
Dispatch
Рет қаралды 162 М.
Configure Linting, Formatting, and Autocompletion in Neovim
7:42
Andrew Courter
Рет қаралды 11 М.
Why Neovim nerds are so obsessed with the terminal
6:44
Joshua Morony
Рет қаралды 82 М.
Automate with Python - Full Course for Beginners
2:42:55
freeCodeCamp.org
Рет қаралды 1,5 МЛН
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 2,8 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
low battery 🪫
0:10
dednahype
Рет қаралды 1,5 МЛН