summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim')
-rw-r--r--neovim/.config/nvim/init.vim19
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