cmp issues fixed
This commit is contained in:
@ -7,7 +7,7 @@ local default_opts = { noremap = true, silent = true }
|
||||
-- Fast saving with <leader> and s
|
||||
map('n', '<leader>s', ':w<CR>', default_opts)
|
||||
map('n', '<leader>a', ':w|:luafile %<CR>', default_opts)
|
||||
map('n', '<leader>aa', ':w|:luafile %<CR> |:PackerCompile<CR>', default_opts)
|
||||
map('n', '<leader>aa', ':w|:luafile %<CR> |:PackerSync<CR>', default_opts)
|
||||
map('i', '<leader>s', '<C-c>:w<CR>', default_opts)
|
||||
|
||||
-- Move around splits using Ctrl + {h,j,k,l}
|
||||
|
||||
@ -37,10 +37,13 @@ cmp.setup {
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.close(),
|
||||
["<C-e>"] = cmp.mapping({
|
||||
i = cmp.mapping.abort(),
|
||||
c = cmp.mapping.close(),
|
||||
}),
|
||||
["<C-y>"] = cmp.config.disable,
|
||||
['<CR>'] = cmp.mapping.confirm {
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
select = false,
|
||||
},
|
||||
|
||||
-- Tab mapping
|
||||
@ -68,15 +71,12 @@ cmp.setup {
|
||||
sources = {
|
||||
{ name = 'nvim-lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'cmdline'},
|
||||
{ name = 'path' },
|
||||
{ name = 'buffer' },
|
||||
{ name = 'zsh' },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
-- see https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#how-to-add-visual-studio-code-dark-theme-colors-to-the-menu
|
||||
vim.cmd[[
|
||||
highlight! link CmpItemMenu Comment
|
||||
|
||||
@ -316,22 +316,22 @@ time([[Config for trouble.nvim]], false)
|
||||
time([[Config for todo-comments.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")
|
||||
time([[Config for todo-comments.nvim]], false)
|
||||
-- Config for: nvim-autopairs
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
-- Config for: mkdnflow.nvim
|
||||
time([[Config for mkdnflow.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
||||
time([[Config for mkdnflow.nvim]], false)
|
||||
-- Config for: tmux.nvim
|
||||
time([[Config for tmux.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
||||
time([[Config for tmux.nvim]], false)
|
||||
-- Config for: mind.nvim
|
||||
time([[Config for mind.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tmind\frequire\0", "config", "mind.nvim")
|
||||
time([[Config for mind.nvim]], false)
|
||||
-- Config for: tmux.nvim
|
||||
time([[Config for tmux.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
||||
time([[Config for tmux.nvim]], false)
|
||||
-- Config for: mkdnflow.nvim
|
||||
time([[Config for mkdnflow.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
||||
time([[Config for mkdnflow.nvim]], false)
|
||||
-- Config for: nvim-autopairs
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
|
||||
Reference in New Issue
Block a user