Ver Fonte

rusty-tags conf

Andrew Swistak há 8 anos atrás
pai
commit
9192563d0d
4 ficheiros alterados com 8 adições e 2 exclusões
  1. 1 0
      bin/manage_dotfiles.sh
  2. 1 0
      gitconfig
  3. 2 0
      gitignore
  4. 4 2
      vimrc

+ 1 - 0
bin/manage_dotfiles.sh

@@ -53,6 +53,7 @@ install_dotfiles() {
     'bashrc'
     'fehbg'
     'gitconfig'
+    'gitignore'
     'gtkrc-2.0'
     'vim'
     'vimrc'

+ 1 - 0
gitconfig

@@ -18,6 +18,7 @@
 [core]
   editor = nvim
   pager = less -F -X
+  excludesfile = ~/.gitignore
 [diff]
   tool = vimdiff
 [merge]

+ 2 - 0
gitignore

@@ -0,0 +1,2 @@
+.idea
+rusty-tags.vi

+ 4 - 2
vimrc

@@ -216,7 +216,7 @@ map <leader><A-/><space> <plug>NERDCommenterComment
 " Easytags
 """"""""""""""""""""""""""""
 
-set regexpengine=1
+"set regexpengine=1
 let g:easytags_updatetime_min = 4000
 let g:easytags_cmd = '/usr/bin/ctags'
 
@@ -446,4 +446,6 @@ map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans
 \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
 
 let g:rustfmt_autosave = 1
-let g:ycm_rust_src_path = '/usr/src/rust/src'
+let g:ycm_rust_src_path = $RUST_SRC_PATH
+autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/,$RUST_SRC_PATH/rusty-tags.vi
+autocmd BufWrite *.rs :silent! exec "!rusty-tags vi --quiet --start-dir=" . expand('%:p:h') . "&" <bar> redraw!