java and python autoformatters added

master
TiynGER 5 years ago
parent 5aa3816cd9
commit 316e182c23

@ -7,12 +7,12 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
endif endif
call plug#begin('~/.local/share/nvim/plugged') call plug#begin('~/.local/share/nvim/plugged')
Plug 'lervag/vimtex' , { 'for' : 'tex'} " Tex library for coc autocompletion Plug 'lervag/vimtex' , { 'for' : 'tex'} " Tex library for autocompletion
Plug 'donRaphaco/neotex', { 'for': 'tex'} " Asynchronous pdf rendering Plug 'donRaphaco/neotex', { 'for': 'tex'} " Asynchronous pdf rendering
Plug 'scrooloose/nerdtree' " Filetree Plug 'scrooloose/nerdtree' " Filetree
Plug 'majutsushi/tagbar' " Show tags Plug 'majutsushi/tagbar' " Show tags
Plug 'airblade/vim-gitgutter' " Git Upgrades Plug 'airblade/vim-gitgutter' " Git Upgrades
Plug 'FredKSchott/CoVim' "Use vim together "Plug 'FredKSchott/CoVim' "Use vim together
Plug 'qpkorr/vim-renamer' " Bulk renamer Plug 'qpkorr/vim-renamer' " Bulk renamer
Plug 'sirver/ultisnips' " Snippets Plug 'sirver/ultisnips' " Snippets
Plug 'uiiaoo/java-syntax.vim' , { 'for': 'java'} " Better syntax highlight for java than default Plug 'uiiaoo/java-syntax.vim' , { 'for': 'java'} " Better syntax highlight for java than default
@ -68,6 +68,16 @@ autocmd VimEnter * HexokinaseTurnOn
" End Plugin section " End Plugin section
" Start Formatting section
autocmd FileType java,python noremap <F8> gggqG
au FileType python setlocal formatprg=autopep8\ -
au FileType java setlocal formatprg=google-java-format\ -
" End Formatting section
let mapleader ="," let mapleader =","
set go=a set go=a

Loading…
Cancel
Save