mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-22 11:28:01 +00:00
assistant/chatgpt: fix npins name incompat
This commit is contained in:
parent
fd8e97a2ff
commit
dad18b3226
1 changed files with 10 additions and 8 deletions
|
@ -30,17 +30,19 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = [
|
startPlugins = ["chatgpt-nvim"];
|
||||||
"chatgpt"
|
|
||||||
];
|
|
||||||
pluginRC.chagpt = entryAnywhere ''
|
pluginRC.chagpt = entryAnywhere ''
|
||||||
require("chatgpt").setup(${toLuaObject cfg.setupOpts})
|
require("chatgpt").setup(${toLuaObject cfg.setupOpts})
|
||||||
'';
|
'';
|
||||||
maps.normal = mkMerge [
|
|
||||||
(mkSetBinding mappings.chatGpt "<cmd>ChatGPT<CR>")
|
maps = {
|
||||||
maps
|
visual = maps;
|
||||||
];
|
normal = mkMerge [
|
||||||
maps.visual = maps;
|
(mkSetBinding mappings.chatGpt "<cmd>ChatGPT<CR>")
|
||||||
|
maps
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue