2025年11月14日 星期五

加rust到vimrc

新增rust.vim與coc.nvim 並且把tagfunc設成CocTagFunc

這樣就能使用tag對rust定義的跳轉

3 " set the runtime path to include Vundle and initialize↵
4 set rtp+=~/.vim/bundle/Vundle.vim↵
5 call vundle#begin()↵
6 "set rtp+=~/.vim/bundle/vundle/↵
7 "call vundle#rc()↵
8 ↵
9 "let Vundle manage Vundle↵
10 "required!↵
11 Plugin 'VundleVim/vundle.vim'↵
12 "Bundle 'Shougo/neocomplete.vim'↵
13 Plugin 'Shougo/vimproc.vim'↵
14 Plugin 'Shougo/vimshell.vim'↵
15 Plugin 'mbbill/echofunc'↵
16 Plugin 'derekwyatt/vim-scala'↵
17 Plugin 'rust-lang/rust.vim'↵
18 Plugin 'neoclide/coc.nvim', {'branch': 'release'}↵
19 ↵
20 " All of your Plugins must be added before the following line↵
21 call vundle#end() " required↵
22 filetype plugin indent on " required↵
121 set tagfunc=CocTagFunc↵

沒有留言:

張貼留言