aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorAriel D'ALessandro <dalessandro.ariel@gmail.com>2021-08-20 08:39:56 +0200
committerAriel D'ALessandro <dalessandro.ariel@gmail.com>2021-08-20 08:39:56 +0200
commit2f65f4524a084967572dce8277098ff71555b740 (patch)
treeec7e6d56e1ee9c50dcb7265d44ca972dcd026b3b /lua/plugins.lua
parent2e14d21aa4f9c92ae78d540e277988304418cbd0 (diff)
downloadnvim-conf-2f65f4524a084967572dce8277098ff71555b740.tar.gz
nvim-conf-2f65f4524a084967572dce8277098ff71555b740.zip
add snippets, fix comp
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua32
1 files changed, 31 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 879f75a..4edbef6 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -35,11 +35,41 @@ return require('packer').startup(function()
use {
'neovim/nvim-lspconfig',
requires = {
- { 'hrsh7th/nvim-compe' },
+ {
+ 'hrsh7th/nvim-compe',
+ config = function()
+ require'compe'.setup {
+ enable = true;
+ autocomplete = true;
+ debug = false;
+ min_lenght = 1;
+ preselect = 'enable';
+ throttle_time = 80;
+ source_timeout = 200;
+ resolve_timeout = 800;
+ incomplete_delay = 400;
+ max_abbr_width = 100;
+ max_kind_width = 100;
+
+ source = {
+ path = true;
+ buffer = true;
+ calc = true;
+ nvim_lsp = true;
+ nvim_lua = true;
+ vsnip = false;
+ ultisnips = false;
+ luasnip = true;
+ };
+ }
+ end
+ },
{ 'kabouzeid/nvim-lspinstall' }
}
}
+ use 'L3MON4D3/LuaSnip'
+
use {
'nvim-telescope/telescope.nvim',
requires = {