From 0b026954bde4b7ae51eb0802903f861e8c2b571b Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Fri, 15 Dec 2023 19:12:40 +0000 Subject: [PATCH] refactor(nvim): configure chatpt-plugin separately --- home/neovim.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index 2da1e34a..58d4dbb8 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -409,7 +409,6 @@ in nmap i :let &bg=(&bg=='light'?'dark':'light') " ChatGPT - lua require("chatgpt").setup({ }) nmap cc :ChatGPT nmap cp :ChatGPTActAs nmap ce :ChatGPTEditWithInstructions @@ -461,7 +460,15 @@ in nvim-jdtls # https://sookocheff.com/post/vim/neovim-java-ide/ vim-bookmarks - nixpkgs-unstable.vimPlugins.ChatGPT-nvim + + { + plugin = nixpkgs-unstable.vimPlugins.ChatGPT-nvim; + config = '' + require("chatgpt").setup({ }) + ''; + type = "lua"; + } + vim-commentary nixpkgs-unstable.vimPlugins.copilot-vim crates-nvim