From bf7c1143952e5f6df001a855e5f7759393fb3bdb Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 25 Jan 2020 19:22:37 +0100 Subject: [PATCH] Add rusty-tags support --- after/ftplugin/rust.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/after/ftplugin/rust.vim b/after/ftplugin/rust.vim index 30be6ed..28a372a 100644 --- a/after/ftplugin/rust.vim +++ b/after/ftplugin/rust.vim @@ -1,5 +1,3 @@ -let g:tagbar_ctags_bin = '/usr/bin/universal-ctags' - let g:rust_doc#define_map_K = 0 let g:rust_doc#downloaded_rust_doc_dir = '~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu' @@ -16,6 +14,13 @@ endfunction nnoremap :call search_under_cursor(expand('')) vnoremap "gy:call search_under_cursor(getreg('g')) +" rusty-tags +autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/ +autocmd BufWritePost *.rs :silent! exec "!rusty-tags vi --quiet --start-dir=" . expand('%:p:h') . "&" | redraw! + +let g:tagbar_ctags_bin = '/usr/bin/exuberant-ctags' + + " nnoremap :call LanguageClient_contextMenu() " nnoremap :call LanguageClient#textDocument_definition() " nnoremap :call LanguageClient#textDocument_hover()