kickstart.nvim/README.md

75 lines
2.5 KiB
Markdown
Raw Normal View History

2023-04-10 18:20:13 +05:30
# Python Devbox with kickstart.nvim
2023-04-10 15:33:22 +05:30
### Python Devbox
2023-04-10 19:09:33 +05:30
Prepare your python development environment in container. This devbox contains neovim with kickstarter.nvim config
2023-04-10 19:10:13 +05:30
I have added python debug support and neotree as extra
2023-04-10 15:33:22 +05:30
```
2023-04-10 18:51:29 +05:30
# Build your devbox image
2023-04-10 15:33:22 +05:30
docker build -t devbox -f devbox.Dockerfile .
# To run the container in background
docker run -td --name mydevbox -v $(pwd):/workspaces devbox
2023-04-10 18:20:13 +05:30
# -v $(pwd) is used to create volume inside container . IF you run from the folder where your source code is available then your container will have source code in it. You can use this as development box
2023-04-10 15:33:22 +05:30
# To enter into devbox
2023-04-10 18:51:29 +05:30
docker exec -it mydevbox /bin/bash
2023-04-10 15:33:22 +05:30
# You can do debug using standard keys used in vscode
F5 - to start debug
F9 - to toggle debug breakpointer
F10 - step over
F11 - step into
2023-04-10 18:22:29 +05:30
shift + F11 - step out
2023-04-14 09:04:39 +05:30
```
2023-04-14 09:04:14 +05:30
### To install locally
```
git clone https://github.com/SamPosh/PyDevbox ~/.config/nvim --depth 1 && nvim
```
### To uninstall
```
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
```
2023-04-10 18:48:40 +05:30
This repo is forked from Kickstarter.nvim
For nvim configuration refer : https://github.com/nvim-lua/kickstart.nvim
2023-04-10 21:52:18 +05:30
## Debuypy inside venv problem is resolved
The reason why this Pydevbox is created to solve the problem of installing debugpy inside virtual env.
2023-04-11 19:14:48 +05:30
I tried other NEOVIM distro but always stuck at the point where i have to use debugpy.
But thankfully with the kickstarter.nvim
2023-04-10 21:52:18 +05:30
inside container doesn't need debugpy to be installed inside venv
2023-04-11 19:14:48 +05:30
2023-04-11 19:21:15 +05:30
## Screenshots
2023-04-11 19:26:09 +05:30
#### screen with terminal and filetree
2023-04-11 19:21:15 +05:30
<img width="914" alt="image" src="https://user-images.githubusercontent.com/21053120/231184071-a42a1585-1a48-4795-885b-d30e85c4407c.png">
2023-04-11 19:26:33 +05:30
2023-04-11 19:26:09 +05:30
#### start debug
2023-04-11 19:23:46 +05:30
<img width="632" alt="image" src="https://user-images.githubusercontent.com/21053120/231185219-24d9c6e3-2dfc-4fe6-93e8-138a979723be.png">
2023-04-11 19:21:15 +05:30
2023-04-11 19:26:09 +05:30
#### Debug
<img width="893" alt="image" src="https://user-images.githubusercontent.com/21053120/231185848-1aec925d-bf80-4548-8d70-d3d1760e3563.png">
2023-04-11 19:28:19 +05:30
##### Notes:
```
I am using Termius terminal emulator.
Using Fira code font
```
2023-04-11 19:21:15 +05:30
2023-04-11 19:14:48 +05:30
## Few VSCode bindings are done
2023-04-11 19:16:05 +05:30
```
Debugger key binding are like vscode`
2023-04-11 19:14:48 +05:30
Ctrl+b will toggle neotree(which is file explorer)
Ctrl+j will toggle terminal (using toggleterm)
2023-04-11 19:16:05 +05:30
```
2023-04-11 19:28:19 +05:30
2023-04-12 20:38:46 +05:30
### Problems need to be resolved yet
copy/paste from the container to outside is not working. I am still trying to figure out a solution
2023-04-14 09:14:25 +05:30
When a lengthy program runs dap ui closes and debug stop abruptly. I am still trying to figure out a solution