added cmd line history cmp

This commit is contained in:
Oliver Hartmann 2022-11-19 13:33:03 +01:00
parent 0b17bf0cfb
commit fb5373f0a7
2 changed files with 5 additions and 5 deletions

View File

@ -106,6 +106,7 @@ return require('packer').startup(function()
{ 'f3fora/cmp-spell' }, { 'f3fora/cmp-spell' },
{ 'hrsh7th/cmp-emoji' }, { 'hrsh7th/cmp-emoji' },
{ 'hrsh7th/cmp-cmdline' }, { 'hrsh7th/cmp-cmdline' },
{ 'dmitmel/cmp-cmdline-history'},
{ 'ray-x/cmp-treesitter' }, { 'ray-x/cmp-treesitter' },
{ 'hrsh7th/cmp-nvim-lsp-signature-help' }, { 'hrsh7th/cmp-nvim-lsp-signature-help' },
{ 'p00f/clangd_extensions.nvim' }, { 'p00f/clangd_extensions.nvim' },

View File

@ -112,13 +112,12 @@ cmp.setup.cmdline('/', {
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', { cmp.setup.cmdline(':', {
sources = cmp.config.sources({ sources = {
{ name = 'path' },
}, {
{ name = 'cmdline' }, { name = 'cmdline' },
}, { { name = 'cmdline_history' },
{ name = 'path' },
{ name = 'buffer' }, { name = 'buffer' },
}), },
}) })
require('cmp').setup.filetype({ 'dap-repl', 'dapui_watches', 'dapui_hover' }, { require('cmp').setup.filetype({ 'dap-repl', 'dapui_watches', 'dapui_hover' }, {