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;