diff --git a/README.md b/README.md index 9cd582d..ed5ed8e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/init.vim b/init.vim index 8350f4a..79518b0 100644 --- a/init.vim +++ b/init.vim @@ -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 \ No newline at end of file +autocmd VimEnter * NERDTree +noremap :Autoformat +