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...)
|
Install your preferred LSP (`coc-rust-analyzer`, `coc-python`, and so on...)
|
||||||
> Some of them are already installed...
|
> Some of them are already installed...
|
||||||
|
|
||||||
|
For python autoformatting you should install `autopep8`:
|
||||||
|
> pip install --upgrade autopep8
|
||||||
|
|
||||||
## Keybindings
|
## Keybindings
|
||||||
- CTRL + ww -> change window's focus
|
- CTRL + ww -> change window's focus
|
||||||
- CTRL + y -> accept autocomplete suggestion
|
- CTRL + y -> accept autocomplete suggestion
|
||||||
|
|||||||
3
init.vim
3
init.vim
@@ -38,6 +38,7 @@ Plug 'honza/vim-snippets' " Snippets library
|
|||||||
|
|
||||||
Plug 'vim-scripts/c.vim' " C syntax and indentation
|
Plug 'vim-scripts/c.vim' " C syntax and indentation
|
||||||
Plug 'rust-lang/rust.vim' " Rust syntax and indentation
|
Plug 'rust-lang/rust.vim' " Rust syntax and indentation
|
||||||
|
Plug 'vim-autoformat/vim-autoformat' " Auto formatter
|
||||||
|
|
||||||
Plug 'folke/tokyonight.nvim'
|
Plug 'folke/tokyonight.nvim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@@ -58,3 +59,5 @@ if has('nvim')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
autocmd VimEnter * NERDTree
|
autocmd VimEnter * NERDTree
|
||||||
|
noremap <F3> :Autoformat<CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user