diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-01-02 16:44:28 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-01-02 16:44:28 +0100 |
commit | a02a54c2187a56b6f4397e47449892847c9a8801 (patch) | |
tree | 2780a1ab76f3d221bbe0b63c166fe727f2c6fb98 /neovim/.config/nvim/init.vim | |
parent | 183337f8ac970b136462dc6bc22e8f02660f5f06 (diff) | |
download | dotfiles-a02a54c2187a56b6f4397e47449892847c9a8801.tar.gz dotfiles-a02a54c2187a56b6f4397e47449892847c9a8801.tar.bz2 dotfiles-a02a54c2187a56b6f4397e47449892847c9a8801.zip |
[nvim] latex/rust support, printing support
Diffstat (limited to 'neovim/.config/nvim/init.vim')
-rw-r--r-- | neovim/.config/nvim/init.vim | 19 |
1 files changed, 17 insertions, 2 deletions
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 <F2> :TaskList<CR> " file finder mapping nmap ,e :Files<CR> +nmap ,a :Ag<CR> " tags (symbols) in current file finder mapping nmap ,g :BTag<CR> " 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 |