summary refs log tree commit diff
path: root/.vim/lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua')
-rw-r--r--.vim/lua/plugins.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua
index 4d5579e..e9ada46 100644
--- a/.vim/lua/plugins.lua
+++ b/.vim/lua/plugins.lua
@@ -649,10 +649,10 @@ require('packer').startup({function()
       }
       cmp.setup.cmdline({'/', '?', '@'}, {
         mapping = cmp.mapping.preset.cmdline(),
-        sources = {
+        sources = cmp.config.sources({
           { name = 'nvim_lsp_document_symbol' },
           { name = 'buffer' }
-        },
+        }),
         formatting = {
           fields = {'abbr', 'menu'},
         },
@@ -661,10 +661,11 @@ require('packer').startup({function()
         mapping = vim.tbl_extend('force', cmp.mapping.preset.cmdline(), {
           ['<c-r>'] = cmp.mapping({ c = function() vim.cmd.Telescope 'command_history' end}),
         }),
-        sources = {
+        sources = cmp.config.sources({
           { name = 'path' },
+        }, {
           { name = 'cmdline' }
-        },
+        }),
         formatting = {
           fields = {'abbr', 'menu'},
         },