commit cffe0bbf0486fcb095430911c398c28fbadf63f4 parent 9d5c0135e8ae80771850af1bc3573fae6525ca2c Author: Ashymad <czilukim@o2.pl> Date: Fri, 16 Mar 2018 10:34:25 +0100 New packages Diffstat:
| M | nvim/.config/nvim/init.vim | | | 31 | +++++++++++++++++++++++++++---- |
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim @@ -7,17 +7,30 @@ endif call plug#begin('~/.local/share/nvim/plugged') +" Visuals Plug 'joshdick/onedark.vim' -Plug 'sheerun/vim-polyglot' Plug 'itchyny/lightline.vim' +" Syntax highlighting +Plug 'sheerun/vim-polyglot' + +" Filesystem Plug 'scrooloose/nerdtree' Plug 'ctrlpvim/ctrlp.vim' -" For Python +" Python Plug 'vim-scripts/indentpython.vim' Plug 'Vimjas/vim-python-pep8-indent' +" LaTeX +Plug 'vim-latex/vim-latex' + +" R +Plug 'jalvesaq/Nvim-R' + +" Completion +Plug 'Valloric/YouCompleteMe' + call plug#end() let g:lightline = { @@ -36,7 +49,17 @@ function SetPythonOptions() setlocal fileformat=unix endfunction -map <C-n> :NERDTreeToggle<CR> +filetype plugin on +autocmd Filetype tex call SetTeXOptions() + +function SetTeXOptions() + setlocal sw=2 + setlocal textwidth=79 + setlocal iskeyword+=: + setlocal spell! spelllang=pl +endfunction + +map <C-l> :NERDTreeToggle<CR> syntax on colorscheme onedark @@ -44,4 +67,4 @@ set noshowmode set nu tnoremap <Esc> <C-\><C-n> -au TermOpen * setlocal nonumber norelativenumbe +au TermOpen * setlocal nonumber norelativenumber