mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 03:34:57 +08:00
更新neovim配置
This commit is contained in:
parent
926899e09a
commit
23ac44ae4e
34 changed files with 408 additions and 1312 deletions
23
lua/lazy/plugins/fittencode.lua
Normal file
23
lua/lazy/plugins/fittencode.lua
Normal 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,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue