From 20e571817827a0c2163753a4197e31d93e3e5f81 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 5 Nov 2019 09:59:18 +0100 Subject: [PATCH] Add Kite dev plugin --- vim/vim/pack/kite/start/vim-plugin/README.md | 2 +- vim/vim/pack/kite/start/vim-plugin/VERSION | 2 +- vim/vim/pack/kite/start/vim-plugin/plugin/kite.vim | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vim/vim/pack/kite/start/vim-plugin/README.md b/vim/vim/pack/kite/start/vim-plugin/README.md index 182a10e..f261715 100644 --- a/vim/vim/pack/kite/start/vim-plugin/README.md +++ b/vim/vim/pack/kite/start/vim-plugin/README.md @@ -151,7 +151,7 @@ let g:kite_documentation_continual=1 - `KiteOpenCopilot` - open the Kite Copilot and focus on it. - `KiteGeneralSettings` - open Kite's 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. - `KiteDisableAutoStart` - do not start Kite automatically when Vim starts. diff --git a/vim/vim/pack/kite/start/vim-plugin/VERSION b/vim/vim/pack/kite/start/vim-plugin/VERSION index 4ad595c..f133985 100644 --- a/vim/vim/pack/kite/start/vim-plugin/VERSION +++ b/vim/vim/pack/kite/start/vim-plugin/VERSION @@ -1 +1 @@ -1.0.42 +1.0.49 diff --git a/vim/vim/pack/kite/start/vim-plugin/plugin/kite.vim b/vim/vim/pack/kite/start/vim-plugin/plugin/kite.vim index 1e60a5f..1983232 100644 --- a/vim/vim/pack/kite/start/vim-plugin/plugin/kite.vim +++ b/vim/vim/pack/kite/start/vim-plugin/plugin/kite.vim @@ -39,6 +39,10 @@ if !exists('g:kite_long_timeout') let g:kite_long_timeout = 400 " ms endif +if !exists('g:kite_completion_max_width') + let g:kite_completion_max_width = 75 +endif + if !(has('nvim') || has('job')) call kite#utils#warn('disabled - requires nvim or vim with the +job feature') finish @@ -57,6 +61,7 @@ endif augroup Kite autocmd! autocmd BufEnter * call kite#bufenter() + autocmd VimEnter * nested if &filetype !~# '^git' | call kite#onboarding#call(0) | endif augroup END @@ -66,7 +71,7 @@ command! KiteDocsAtCursor call kite#docs#docs() command! KiteOpenCopilot call kite#client#copilot() command! KiteGeneralSettings call kite#client#settings() 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! KiteEnableAutoStart call kite#enable_auto_start() command! KiteShowPopularPatterns call kite#signature#show_popular_patterns()