mirror of
https://github.com/cap153/nvim.git
synced 2025-12-28 12:54:56 +08:00
更新neovim配置
This commit is contained in:
parent
926899e09a
commit
23ac44ae4e
34 changed files with 408 additions and 1312 deletions
|
|
@ -68,14 +68,14 @@ M.config = {
|
|||
['<c-o>'] = cmp.mapping.complete(),
|
||||
['<c-space>'] = cmp.mapping.complete(),
|
||||
-- 代码片段下一处位置
|
||||
["<c-e>"] = cmp.mapping(
|
||||
["<c-h>"] = cmp.mapping(
|
||||
function()
|
||||
cmp_ultisnips_mappings.compose { "expand", "jump_forwards" } (function() end)
|
||||
end,
|
||||
{ "i", "s", --[[ "c" (to enable the mapping in command mode) ]] }
|
||||
),
|
||||
-- 代码片段上一处位置
|
||||
["<c-n>"] = cmp.mapping(
|
||||
["<c-l>"] = cmp.mapping(
|
||||
function(fallback)
|
||||
cmp_ultisnips_mappings.jump_backwards(fallback)
|
||||
end,
|
||||
|
|
@ -104,6 +104,7 @@ M.config = {
|
|||
c = function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })
|
||||
cmp.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false })
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
|
|
@ -135,6 +136,7 @@ M.config = {
|
|||
{ name = 'path' }, -- 本地路径补全
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'ultisnips' }, -- For ultisnips users.
|
||||
{ name = 'fittencode', group_index = 1 },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue