new neovim config
This commit is contained in:
38
README.md
38
README.md
@@ -1,33 +1,21 @@
|
||||
# dotfiles
|
||||
My attempt to make my personal dotfiles (I'm doing this to learn more about Linux and the Vim's world!)
|
||||
My personal dotfiles!
|
||||
|
||||
## My setup
|
||||
- Neovim
|
||||
|
||||
### Startup
|
||||
Before doing something, you should install vimplug following this [guide](https://github.com/junegunn/vim-plug).
|
||||
## Requirements
|
||||
- [ripgrep](https://github.com/BurntSushi/ripgrep)
|
||||
|
||||
After cloned the repo, move the `init.vim` in the neovim config, start neovim and type: `:PlugInstall`. This should do all the stuff needed.
|
||||
|
||||
### Other
|
||||
Install your preferred LSP (`coc-rust-analyzer`, `coc-python`, and so on...)
|
||||
> Some of them are already installed...
|
||||
|
||||
For python autoformatting you should install `black`:
|
||||
```bash
|
||||
pip install --upgrade black
|
||||
```
|
||||
If you have any issues, try formatting with:
|
||||
```bash
|
||||
python -m black {file}
|
||||
```
|
||||
If you are on Windows you can install clangd by typing:
|
||||
```bash
|
||||
:CocCommand clangd.install
|
||||
```
|
||||
## Installation
|
||||
Just copy the folders under `.config` in your `$HOME/.config/`.
|
||||
|
||||
## Keybindings
|
||||
- CTRL + ww -> change window's focus
|
||||
- CTRL + y -> accept autocomplete suggestion
|
||||
- m (with nerdtree focused) -> opens the nerdtree's menu
|
||||
- F3 -> start the :AutoFormat cmd
|
||||
The leader key is the `Space`.
|
||||
|
||||
<leader>ff - Find files
|
||||
<leader>fg - Live grep
|
||||
<leader>fb - Telescope buffers
|
||||
<leader>fh - Help tags
|
||||
<leader>F - Format file (only works with C files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user