vim-tags 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin/vim-tags.vim +19 -0
- data/plugins.rb +4 -6
- data/vim-tags.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24862170a8fd6195f07f07160c5c810336e859a5297712dac58b515cca323c60
|
4
|
+
data.tar.gz: aab67522bb493fa0308d01b715030a0b66c3663471d121db9e54d4aeefb3c22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0890772903f0e49d8037c62c024742fb7b8c6a218e86b26c5f708c13a5fdecfccb428ddb4b04ec80a40043579d430d65026385505557ddc9b70d74f3626a5e61'
|
7
|
+
data.tar.gz: 224d233cd91b633bc94967523665da3a2c4e8cfabd28b671c75f7064c914ad2b988e5b4fc67c09a7e9e3cc14a9f690209a326f7773523cb78a0d86bcc1c08c3b
|
data/plugin/vim-tags.vim
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
function! LoadRubyTags()
|
2
|
+
if exists("g:vim_tags_loaded")
|
3
|
+
return
|
4
|
+
endif
|
5
|
+
|
6
|
+
let s:load_ruby_tags_fp = finddir('.git/..', expand('%:p:h').';') . '/.bundle/.tag_files'
|
7
|
+
|
8
|
+
if !filereadable(s:load_ruby_tags_fp)
|
9
|
+
let s:install_response = system('bundler plugin install vim-tags')
|
10
|
+
let s:command_response = system('bundler vim-tags')
|
11
|
+
endif
|
12
|
+
|
13
|
+
let s:comma_tags = system("cat " . s:load_ruby_tags_fp . " | paste -sd ',' -")
|
14
|
+
let g:vim_tags_loaded = 1
|
15
|
+
|
16
|
+
let &l:tags = &tags . ',' . s:comma_tags
|
17
|
+
endfunction
|
18
|
+
|
19
|
+
autocmd FileType ruby :call LoadRubyTags()
|
data/plugins.rb
CHANGED
@@ -19,17 +19,15 @@ class VimTagsCommand < Bundler::Plugin::API
|
|
19
19
|
|
20
20
|
def gem_paths
|
21
21
|
Bundler.load.specs.filter_map do |spec|
|
22
|
-
|
22
|
+
next if spec.name == "bundler" ||
|
23
|
+
!File.exist?(File.join(spec.full_gem_path, "tags"))
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
path
|
25
|
+
spec.full_gem_path
|
27
26
|
end
|
28
27
|
end
|
29
28
|
|
30
29
|
def ruby_paths
|
31
|
-
$:.
|
32
|
-
select { |path| File.exist?(path) }
|
30
|
+
$:.select { |path| File.exist?(File.join(path, "tags")) }
|
33
31
|
end
|
34
32
|
end
|
35
33
|
|
data/vim-tags.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vim-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pezza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -34,6 +34,7 @@ files:
|
|
34
34
|
- ".rubocop.yml"
|
35
35
|
- Gemfile
|
36
36
|
- Rakefile
|
37
|
+
- plugin/vim-tags.vim
|
37
38
|
- plugins.rb
|
38
39
|
- vim-tags.gemspec
|
39
40
|
homepage:
|