Add Kite dev plugin

This commit is contained in:
Jeff Lance 2019-11-05 09:59:18 +01:00
parent cf9e26041f
commit 20e5718178
3 changed files with 8 additions and 3 deletions

View File

@ -151,7 +151,7 @@ let g:kite_documentation_continual=1
- `KiteOpenCopilot` - open the Kite Copilot and focus on it. - `KiteOpenCopilot` - open the Kite Copilot and focus on it.
- `KiteGeneralSettings` - open Kite's settings in the Copilot. - `KiteGeneralSettings` - open Kite's settings in the Copilot.
- `KitePermissions` - open Kite's permission settings in the Copilot. - `KitePermissions` - open Kite's permission settings in the Copilot.
- `KiteHelp` - show overview documentation. - `KiteTutorial` - show a tutorial for how to use Kite with Vim.
- `KiteEnableAutoStart` - start Kite automatically when Vim starts. - `KiteEnableAutoStart` - start Kite automatically when Vim starts.
- `KiteDisableAutoStart` - do not start Kite automatically when Vim starts. - `KiteDisableAutoStart` - do not start Kite automatically when Vim starts.

View File

@ -1 +1 @@
1.0.42 1.0.49

View File

@ -39,6 +39,10 @@ if !exists('g:kite_long_timeout')
let g:kite_long_timeout = 400 " ms let g:kite_long_timeout = 400 " ms
endif endif
if !exists('g:kite_completion_max_width')
let g:kite_completion_max_width = 75
endif
if !(has('nvim') || has('job')) if !(has('nvim') || has('job'))
call kite#utils#warn('disabled - requires nvim or vim with the +job feature') call kite#utils#warn('disabled - requires nvim or vim with the +job feature')
finish finish
@ -57,6 +61,7 @@ endif
augroup Kite augroup Kite
autocmd! autocmd!
autocmd BufEnter * call kite#bufenter() autocmd BufEnter * call kite#bufenter()
autocmd VimEnter * nested if &filetype !~# '^git' | call kite#onboarding#call(0) | endif
augroup END augroup END
@ -66,7 +71,7 @@ command! KiteDocsAtCursor call kite#docs#docs()
command! KiteOpenCopilot call kite#client#copilot() command! KiteOpenCopilot call kite#client#copilot()
command! KiteGeneralSettings call kite#client#settings() command! KiteGeneralSettings call kite#client#settings()
command! KitePermissions call kite#client#permissions() command! KitePermissions call kite#client#permissions()
command! KiteHelp call kite#utils#generate_help() | help kite command! KiteTutorial call kite#onboarding#call(1)
command! KiteDisableAutoStart call kite#disable_auto_start() command! KiteDisableAutoStart call kite#disable_auto_start()
command! KiteEnableAutoStart call kite#enable_auto_start() command! KiteEnableAutoStart call kite#enable_auto_start()
command! KiteShowPopularPatterns call kite#signature#show_popular_patterns() command! KiteShowPopularPatterns call kite#signature#show_popular_patterns()