File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ This Vim plugin is built on top of the great tool [CodeQuery](https://github.com
25
25
* Support asynchronous search (Vim version >= 8.0)
26
26
2 . ** Manage your database easily** .
27
27
* Load, make and move your database file by custom Vim commands.
28
- * Support asynchronous build (Vim version >= 8.0 or by ` Dispatch ` plugin)
28
+ * Support asynchronous build (Vim version >= 8.0 or NeoVim or by ` Dispatch ` plugin)
29
29
* ` Note: CodeQuery's SQLite database is built on top of ctags and cscope. `
30
30
3 . ** Know your code more instantly** .
31
31
* (TBD)
@@ -69,10 +69,12 @@ Now vim-codequery works better than what you see by using Vim8's async feature.
69
69
> * ~~ Do lazy-loading.~~
70
70
> * ~~ Enhance usability.~~
71
71
> * ~~ Test it.~~
72
+ > * ~~ Support NeoVim at a certain level.~~
72
73
> * Add ** explain** command in v1.0.0
74
+ > * Make UI be optional
73
75
> * Doc it.
74
76
>
75
- > Current Version: v0.9.1
77
+ > Current Version: v0.9.2
76
78
>
77
79
> Welcome to try it! 👌
78
80
@@ -375,6 +377,13 @@ let g:codequery_enable_not_so_magic_menu = 1
375
377
376
378
<br >
377
379
380
+ ## Contributors
381
+ * [ devjoe] ( https://github.com/devjoe )
382
+ * [ johnzeng] ( https://github.com/johnzeng )
383
+ * [ syslot] ( https://github.com/syslot )
384
+
385
+ <br >
386
+
378
387
## Credits
379
388
380
389
Thank all for working on these great projects!
Original file line number Diff line number Diff line change @@ -137,7 +137,13 @@ function! codequery#make_codequery_db(args) abort
137
137
continue
138
138
endif
139
139
140
- if v: version >= 800 && ! has (' nvim' )
140
+ if has (' nvim' )
141
+ echom ' Making DB ...'
142
+ let mydict = {' db_path' : db_path,
143
+ \' callback': function (" codequery#db#make_db_nvim_callback" )}
144
+ let callbacks = {' on_exit' : mydict.callback}
145
+ let s: build_job = jobstart ([' /bin/sh' , ' -c' , shell_cmd], callbacks)
146
+ elseif v: version >= 800
141
147
echom ' Making DB ...'
142
148
let mydict = {' db_path' : db_path,
143
149
\' callback': function (" codequery#db#make_db_callback" )}
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ function! codequery#db#make_db_callback(job, status) dict
41
41
endfunction
42
42
43
43
44
+ function ! codequery#db#make_db_nvim_callback (job, data, status) dict
45
+ echom ' Done! Built codequery db!'
46
+ endfunction
47
+
48
+
44
49
function ! codequery#db#construct_python_db_build_cmd (db_path) abort
45
50
let find_cmd = ' find . -iname "*.py" > python_cscope.files'
46
51
let pycscope_cmd = ' pycscope -f "python_cscope.out" -i python_cscope.files'
You can’t perform that action at this time.
0 commit comments