added autoformatter

This commit is contained in:
2024-03-10 21:13:14 +01:00
parent 5d276e6684
commit 4931a03083
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ After cloned the repo, move the `init.vim` in the neovim config, start neovim an
Install your preferred LSP (`coc-rust-analyzer`, `coc-python`, and so on...)
> Some of them are already installed...
For python autoformatting you should install `autopep8`:
> pip install --upgrade autopep8
## Keybindings
- CTRL + ww -> change window's focus
- CTRL + y -> accept autocomplete suggestion

View File

@@ -38,6 +38,7 @@ Plug 'honza/vim-snippets' " Snippets library
Plug 'vim-scripts/c.vim' " C syntax and indentation
Plug 'rust-lang/rust.vim' " Rust syntax and indentation
Plug 'vim-autoformat/vim-autoformat' " Auto formatter
Plug 'folke/tokyonight.nvim'
call plug#end()
@@ -57,4 +58,6 @@ if has('nvim')
set directory=~/.config/nvim/swap//
endif
autocmd VimEnter * NERDTree
autocmd VimEnter * NERDTree
noremap <F3> :Autoformat<CR>