changeset 366:42bc7d63537e

Map <c-y> to trigger completion in compe
author zegervdv <zegervdv@me.com>
date Mon, 29 Mar 2021 10:59:20 +0200
parents d8216ea00ad1
children f0a89299e854
files dot_config/nvim/config.lua
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/nvim/config.lua	Sat Mar 27 17:31:46 2021 +0100
+++ b/dot_config/nvim/config.lua	Mon Mar 29 10:59:20 2021 +0200
@@ -112,11 +112,12 @@
           min_length = 1;
           preselect = 'enable';
           throttle_time = 80;
-          source_timeout = 2000;
+          source_timeout = 1000;
           incomplete_delay = 400;
           max_abbr_width = 100;
           max_kind_width = 100;
           max_menu_width = 100;
+          documentation = true;
 
           source = {
             path = true;
@@ -126,11 +127,11 @@
             nvim_lua = true;
             spell = true;
             ultisnips = true;
-            treesitter = true;
+            -- TODO add vsnip for LSP snippets
           };
         }
 
-        vim.cmd [[ inoremap <silent><expr> <TAB> compe#complete() ]]
+        vim.cmd [[ inoremap <silent><expr> <C-y> compe#complete() ]]
         vim.cmd [[ inoremap <silent><expr> <CR>      compe#confirm({ 'keys': "\<Plug>delimitMateCR", 'mode': '' }) ]]
         vim.cmd [[ inoremap <silent><expr> <C-e>     compe#close('<C-e>') ]]
       end