changeset 634:38a7bca2ba51

Add cmp-cmdline-history plugin to also complete history
author zegervdv <zegervdv@me.com>
date Sat, 06 Aug 2022 11:37:59 +0200
parents 9f040a50eac8
children 44c31cfaaf8a
files .chezmoitemplates/init.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua	Sat Aug 06 11:34:34 2022 +0200
+++ b/.chezmoitemplates/init.lua	Sat Aug 06 11:37:59 2022 +0200
@@ -264,6 +264,7 @@
       'hrsh7th/cmp-path',
       'hrsh7th/cmp-cmdline',
       'hrsh7th/cmp-nvim-lsp-signature-help',
+      'dmitmel/cmp-cmdline-history',
     },
     config = function()
       local cmp = require 'cmp'
@@ -309,6 +310,7 @@
         sources = cmp.config.sources({
           { name = 'path' },
         }, {
+          { name = 'cmdline_history' },
           { name = 'cmdline', keyword_length = 4 },
         }),
       })