From dad18b322618310c1c62e9411fced2e20d11de7d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 11 Feb 2025 22:06:10 +0300 Subject: [PATCH] assistant/chatgpt: fix npins name incompat --- modules/plugins/assistant/chatgpt/config.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/plugins/assistant/chatgpt/config.nix b/modules/plugins/assistant/chatgpt/config.nix index 3caa221f..95a36acf 100644 --- a/modules/plugins/assistant/chatgpt/config.nix +++ b/modules/plugins/assistant/chatgpt/config.nix @@ -30,17 +30,19 @@ in { config = mkIf cfg.enable { vim = { - startPlugins = [ - "chatgpt" - ]; + startPlugins = ["chatgpt-nvim"]; + pluginRC.chagpt = entryAnywhere '' require("chatgpt").setup(${toLuaObject cfg.setupOpts}) ''; - maps.normal = mkMerge [ - (mkSetBinding mappings.chatGpt "ChatGPT") - maps - ]; - maps.visual = maps; + + maps = { + visual = maps; + normal = mkMerge [ + (mkSetBinding mappings.chatGpt "ChatGPT") + maps + ]; + }; }; }; }