Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robamu/nvim-cfg
My personal neovim configuration
https://github.com/robamu/nvim-cfg
Last synced: 18 days ago
JSON representation
My personal neovim configuration
- Host: GitHub
- URL: https://github.com/robamu/nvim-cfg
- Owner: robamu
- License: unlicense
- Created: 2023-07-23T12:46:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T16:31:15.000Z (9 months ago)
- Last Synced: 2024-04-13T00:03:02.109Z (9 months ago)
- Language: Lua
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nvim configuration
========Personal neovim configuration.
**Unix**
```sh
cd ~/.config
git clone [email protected]:robamu/nvim-cfg.git nvim
```**Windows**
```ps
cd $HOME/AppData/Local
git clone [email protected]:robamu/nvim-cfg.git nvim
```You might need to run `:MasonUpdate` and `:PackerInstall` again, even
though this should be a fully self-installing setup in theory.Right now, this configuration has been used for work in:
- Rust
- Python
- Lua
- C/C++It is recommended to install [ripgrep](https://github.com/BurntSushi/ripgrep) and
[fd](https://github.com/sharkdp/fd) for beter telescope functionality.The [`black`](https://github.com/psf/black) Python auto-formatter and the
[`stylua`](https://github.com/JohnnyMorganz/StyLua) Lua auto-formatter will be installed
automatically if they are not detected on the system.# Additional steps
Install [lazygit](https://github.com/jesseduffield/lazygit#ubuntu)
```sh
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
```# Additional steps for Python
## `pynvim` installation
```sh
python3 -m pip install pynvim
```# Most important custom keybindings and commands
- Leader key is remapped to ``.
- Exit terminal mode: ``
- Open NVIM tree: `r`
- Open `lazygit`: `g`
- Auto-formatting using the [formatter plugin](https://github.com/mhartington/formatter.nvim):
`f` or `:Format`
- Auto-format and write: `F` or `:FormatWrite`
- telescope search in buffers: ``
- telescope search in last files: `?`
- Run nearest test: `tr` or `:NtRun`
- Open and jump into test output: `to` or `:NtShow`
- Display test summary: `ts` or `:NtSum`
- Debug nearest test: `td` or `:NtDebug`
- Toggle breakpoint: `dt` or `:DapToggleBreakpoint`
- Open Terminal in same window: `tt`, then `i` to go into terminal mode.## Rust
# Configuring the theme
You can find all theme settings inside the `lua/setup/theme.lua` folder. Currently,
[`gruvbox`](https://github.com/ellisonleao/gruvbox.nvim) and
[`catppuccino`](https://github.com/catppuccin/nvim) are pre-installed.