mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2026-11-05 20:02:56 +08:00
Add completions and documents
Use `vimdoc .` to generate documentation. User can use plugin manager to do it automatically when update plugin.
This commit is contained in:
1 parent
4c06f2e231
commit
52b9158acc
5 files changed
+85
No files matched your search
@@ -0,0 +1,18 @@
|
||||
""
|
||||
" https://github.com/neoclide/coc.nvim/wiki/Create-custom-source
|
||||
function! coc#source#requirements#init() abort
|
||||
return {
|
||||
\ 'shortcut': 'pip',
|
||||
\ 'priority': 9,
|
||||
\ 'filetypes': ['requirements'],
|
||||
\ }
|
||||
endfunction
|
||||
|
||||
""
|
||||
" https://github.com/neoclide/coc.nvim/wiki/Create-custom-source
|
||||
"
|
||||
" Completion pip option and PYPI package names.
|
||||
function! coc#source#requirements#complete(opt, cb) abort
|
||||
call a:cb(g:requirements#items)
|
||||
endfunction
|
||||
" vim: et sw=4 ts=4 sts=4:
|
||||
Reference in new issue
Block a user