From a02a54c2187a56b6f4397e47449892847c9a8801 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 2 Jan 2020 16:44:28 +0100 Subject: [nvim] latex/rust support, printing support --- neovim/.config/nvim/init.vim | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'neovim') diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 3bef9c7..0caedb1 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -8,7 +8,6 @@ " ============================================================================ " Vim-plug initialization " Avoid modify this section, unless you are very sure of what you are doing - let vim_plug_just_installed = 0 let vim_plug_path = expand('~/.config/nvim/autoload/plug.vim') if !filereadable(vim_plug_path) @@ -97,6 +96,7 @@ Plug 'jeetsukumaran/vim-indentwise' " Better language packs Plug 'sheerun/vim-polyglot' +let g:polyglot_disabled = ['latex'] " Ack code search (requires ack installed in the system) Plug 'mileszs/ack.vim' @@ -140,6 +140,9 @@ Plug 'vim-scripts/YankRing.vim' Plug 'myusuf3/numbers.vim' +" Official rust plugin +Plug 'rust-lang/rust.vim' + " Tell vim-plug we finished declaring plugins, so it can load them call plug#end() @@ -236,6 +239,7 @@ map :TaskList " file finder mapping nmap ,e :Files +nmap ,a :Ag " tags (symbols) in current file finder mapping nmap ,g :BTag " tags (symbols) in all files finder mapping @@ -349,5 +353,16 @@ let g:airline#extensions#whitespace#enabled = 0 "let g:airline_symbols.readonly = '⭤' "let g:airline_symbols.linenr = '⭡' -set clipboard=unnamedplus +set clipboard=unnamedplus inccommand=nosplit +let g:tex_flavor = "latex" au BufNewFile,BufRead *.tex,*.latex,*.sty,*.dtx,*.ltx set sw=2 sts=2 + +function PrintFile(fname) + call system("gtklp " . a:fname) + call delete(a:fname) + return v:shell_error +endfunction +set printexpr=PrintFile(v:fname_in) + +" TUT: +" color murphy -- cgit v1.2.3