added autoformatter
This commit is contained in:
@@ -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
|
||||
|
||||
5
init.vim
5
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
|
||||
autocmd VimEnter * NERDTree
|
||||
noremap <F3> :Autoformat<CR>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user