From da6e27dd43698d2d6b7621ecf2748ec8785bc9e5 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 20 Mar 2024 02:42:02 +0530 Subject: [PATCH] [feat] Add ChatGPT-nvim --- common/nvim.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/nvim.nix b/common/nvim.nix index ffb496ca..3d83aa0e 100644 --- a/common/nvim.nix +++ b/common/nvim.nix @@ -7,6 +7,9 @@ neorg neorg-telescope + # Wut + ChatGPT-nvim + # UI and UX comfortable-motion vim-abolish @@ -181,6 +184,7 @@ mappings = { normal = { "ff" = "require'telescope.builtin'.find_files"; + "c" = "[[ChatGPT]]"; "fb" = "require'telescope'.extensions.file_browser.file_browser"; "gg" = "require'telescope.builtin'.live_grep"; ";" = "require'telescope.builtin'.buffers"; @@ -421,6 +425,10 @@ pattern = {"*.norg"}, command = "set conceallevel=3" }) + + require('chatgpt').setup({ + api_key_cmd = "rbw get platform.openai.com", + }) ''; # builtins.readFile ./extraConfig.lua; package = pkgs.neovim-nightly;