comparison .chezmoitemplates/init.lua @ 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
comparison
equal deleted inserted replaced
633:9f040a50eac8 634:38a7bca2ba51
262 'hrsh7th/cmp-nvim-lsp', 262 'hrsh7th/cmp-nvim-lsp',
263 'saadparwaiz1/cmp_luasnip', 263 'saadparwaiz1/cmp_luasnip',
264 'hrsh7th/cmp-path', 264 'hrsh7th/cmp-path',
265 'hrsh7th/cmp-cmdline', 265 'hrsh7th/cmp-cmdline',
266 'hrsh7th/cmp-nvim-lsp-signature-help', 266 'hrsh7th/cmp-nvim-lsp-signature-help',
267 'dmitmel/cmp-cmdline-history',
267 }, 268 },
268 config = function() 269 config = function()
269 local cmp = require 'cmp' 270 local cmp = require 'cmp'
270 local luasnip = require 'luasnip' 271 local luasnip = require 'luasnip'
271 272
307 ['<C-y>'] = { c = cmp.mapping.complete() }, 308 ['<C-y>'] = { c = cmp.mapping.complete() },
308 }, 309 },
309 sources = cmp.config.sources({ 310 sources = cmp.config.sources({
310 { name = 'path' }, 311 { name = 'path' },
311 }, { 312 }, {
313 { name = 'cmdline_history' },
312 { name = 'cmdline', keyword_length = 4 }, 314 { name = 'cmdline', keyword_length = 4 },
313 }), 315 }),
314 }) 316 })
315 end, 317 end,
316 after = 'luasnip', 318 after = 'luasnip',