更新neovim配置

This commit is contained in:
a770 2025-01-19 22:17:41 +08:00
parent 926899e09a
commit 23ac44ae4e
34 changed files with 408 additions and 1312 deletions

View file

@ -0,0 +1,23 @@
-- ===
-- === 一个ai编程助手
-- ===
return {
'luozhiya/fittencode.nvim',
config = function()
require('fittencode').setup({
-- completion_mode ='source',
keymaps = {
inline = {
['<S-CR>'] = 'accept_all_suggestions', -- 接受所有建议
['<C-i>'] = 'accept_line', -- 接受当前行
-- ['<C-i>'] = 'accept_word', -- 接受当前单词
['<C-n>'] = 'revoke_line', -- 撤销当前行
-- ['<C-n>'] = 'revoke_word', -- 撤销当前单词
['<c-\\>'] = 'triggering_completion', -- 触发补全
},
},
})
end,
}