comparison dot_config/nvim/config.lua @ 349:3d01318e4743

Tweak settings for compe
author Zeger Van de Vannet <zegervdv@me.com>
date Fri, 12 Feb 2021 09:02:39 +0100
parents d717168f424f
children a9910306741c
comparison
equal deleted inserted replaced
348:f220567b278e 349:3d01318e4743
92 autocomplete = true; 92 autocomplete = true;
93 debug = false; 93 debug = false;
94 min_length = 1; 94 min_length = 1;
95 preselect = 'enable'; 95 preselect = 'enable';
96 throttle_time = 80; 96 throttle_time = 80;
97 source_timeout = 200; 97 source_timeout = 2000;
98 incomplete_delay = 400; 98 incomplete_delay = 400;
99 max_abbr_width = 100; 99 max_abbr_width = 100;
100 max_kind_width = 100; 100 max_kind_width = 100;
101 max_menu_width = 100; 101 max_menu_width = 100;
102 102
103 source = { 103 source = {
104 path = true; 104 path = true;
105 buffer = true; 105 buffer = true;
106 calc = true; 106 calc = true;
107 -- vsnip = true;
108 nvim_lsp = true; 107 nvim_lsp = true;
109 -- nvim_lua = true; 108 nvim_lua = true;
110 spell = true; 109 spell = true;
111 ultisnips = true; 110 ultisnips = true;
112 -- tags = true; 111 treesitter = true;
113 -- snippets_nvim = true;
114 }; 112 };
115 } 113 }
116 114
117 vim.cmd [[ inoremap <silent><expr> <TAB> compe#complete() ]] 115 vim.cmd [[ inoremap <silent><expr> <TAB> compe#complete() ]]
118 vim.cmd [[ inoremap <silent><expr> <CR> compe#confirm({ 'keys': "\<Plug>delimitMateCR", 'mode': '' }) ]] 116 vim.cmd [[ inoremap <silent><expr> <CR> compe#confirm({ 'keys': "\<Plug>delimitMateCR", 'mode': '' }) ]]