commit 59ea0f0a9a2407ae69de6cc755119197d92c561f
parent cb2760916eb513d36074c182fefff26a4e5de70e
Author: Tomas Nemec <owl@gtms.dev>
Date: Wed, 26 Apr 2023 08:10:09 +0200
update
Diffstat:
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua
@@ -123,31 +123,31 @@ cmp.setup({
experimental = { ghost_text = true },
})
-cmp.setup.cmdline('/', {
- --
- mapping = {
- ['<c-e>'] = { c = cmp.mapping.close() },
- ['<c-y>'] = { c = cmp.mapping.confirm({ select = true }) },
- -- ['<c-space>'] = cmp.mapping { c = doOrOpen(cmp.confirm, { select = true }) },
- ['<c-p>'] = cmp.mapping({ c = doOrOpen(cmp.select_prev_item, { behavior = cmp.SelectBehavior.Select }) }),
- ['<c-n>'] = cmp.mapping({ c = doOrOpen(cmp.select_next_item, { behavior = cmp.SelectBehavior.Select }) }),
- },
- sources = cmp.config.sources({ { name = 'buffer' } }),
-})
+-- cmp.setup.cmdline('/', {
+-- --
+-- mapping = {
+-- ['<c-e>'] = { c = cmp.mapping.close() },
+-- ['<c-y>'] = { c = cmp.mapping.confirm({ select = true }) },
+-- -- ['<c-space>'] = cmp.mapping { c = doOrOpen(cmp.confirm, { select = true }) },
+-- ['<c-p>'] = cmp.mapping({ c = doOrOpen(cmp.select_prev_item, { behavior = cmp.SelectBehavior.Select }) }),
+-- ['<c-n>'] = cmp.mapping({ c = doOrOpen(cmp.select_next_item, { behavior = cmp.SelectBehavior.Select }) }),
+-- },
+-- sources = cmp.config.sources({ { name = 'buffer' } }),
+-- })
-cmp.setup.cmdline(':', {
- mapping = {
- ['<c-e>'] = { c = cmp.mapping.close() },
- ['<c-y>'] = { c = cmp.mapping.confirm({ select = true }) },
- -- ['<c-space>'] = cmp.mapping { c = doOrOpen(cmp.confirm, { select = true }) },
- ['<c-p>'] = cmp.mapping({ c = doOrOpen(cmp.select_prev_item, { behavior = cmp.SelectBehavior.Select }) }),
- ['<c-n>'] = cmp.mapping({ c = doOrOpen(cmp.select_next_item, { behavior = cmp.SelectBehavior.Select }) }),
- },
- sources = cmp.config.sources({ --
- { name = 'path' },
- }, { --
- { name = 'cmdline' },
- }, { --
- { name = 'cmdline_history' },
- }),
-})
+-- cmp.setup.cmdline(':', {
+-- mapping = {
+-- ['<c-e>'] = { c = cmp.mapping.close() },
+-- ['<c-y>'] = { c = cmp.mapping.confirm({ select = true }) },
+-- -- ['<c-space>'] = cmp.mapping { c = doOrOpen(cmp.confirm, { select = true }) },
+-- ['<c-p>'] = cmp.mapping({ c = doOrOpen(cmp.select_prev_item, { behavior = cmp.SelectBehavior.Select }) }),
+-- ['<c-n>'] = cmp.mapping({ c = doOrOpen(cmp.select_next_item, { behavior = cmp.SelectBehavior.Select }) }),
+-- },
+-- sources = cmp.config.sources({ --
+-- { name = 'path' },
+-- }, { --
+-- { name = 'cmdline' },
+-- }, { --
+-- { name = 'cmdline_history' },
+-- }),
+-- })