File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11" setlocal completefunc=solargraph#CompleteSolar
22setlocal omnifunc = solargraph#CompleteSolar
3+ " call RubySolarPrepare()
4+ execute RubySolarPrepare ()
Original file line number Diff line number Diff line change 33
44class VimSolargraph
55 def initialize ( workspace )
6- VIM ::message "Parsing files..."
6+ # VIM::message "Parsing Ruby files..."
77 @cw = VIM ::Window . current
88 @cb = VIM ::Buffer . current
99
@@ -25,6 +25,15 @@ def initialize(workspace)
2525 end
2626
2727
28+ def prepare
29+ #puts "Parsing Ruby files..."
30+ #VIM::evaluate( "echomParsing Ruby files...")
31+ VIM ::message "Parsing Ruby files..."
32+ RestClient . post "http://localhost:7657/prepare" , { "workspace" : @workspace }
33+ return nil
34+ end
35+
36+
2837 def suggest
2938 #RestClient.post "http://localhost:7657/prepare"
3039 data = RestClient . post "http://localhost:7657/suggest" ,
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ function! RubySolar()
3535EOF
3636endfunction
3737
38+ function ! RubySolarPrepare ()
39+ ruby << EOF
40+ ko = VimSolargraph.new ( VIM:: evaluate (" s:Setcwd()" ) )
41+ ko.prepare
42+ EOF
43+ endfunction
3844
3945
4046function ! solargraph#CompleteSolar (findstart, base)
@@ -58,3 +64,7 @@ function! solargraph#CompleteSolar(findstart, base)
5864 return res
5965 endif
6066endfun
67+
68+ function ! HAHA ()
69+ execute ' silent echomsg "SKATA"'
70+ endfun
You can’t perform that action at this time.
0 commit comments