CMD no longer aborts on ESC (was conflicting), added color scheme toggle <leader>m
This commit is contained in:
@@ -29,7 +29,9 @@ cmp.setup({
|
||||
['<PageUp>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<PageDown>'] = cmp.mapping.scroll_docs(4),
|
||||
|
||||
['<Esc>'] = cmp.mapping.abort(),
|
||||
-- ESC messes with standard ESC mapping, don't use
|
||||
-- ['<Esc>'] = cmp.mapping.abort(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
|
||||
-- Use <CR>(Enter) to confirm selection
|
||||
-- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||
@@ -95,21 +97,3 @@ cmp.setup({
|
||||
|
||||
|
||||
|
||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
{ name = 'buffer' }
|
||||
}
|
||||
})
|
||||
|
||||
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
}),
|
||||
matching = { disallow_symbol_nonprefix_matching = false }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user