assistant/chatgpt: fix npins name incompat

This commit is contained in:
raf 2025-02-11 22:06:10 +03:00
parent fd8e97a2ff
commit dad18b3226
No known key found for this signature in database
GPG key ID: EED98D11B85A2819

View file

@ -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
];
};
}; };
}; };
} }