many changes and more modularizing
This commit is contained in:
13
hosts/nb/modules/nvim/chatgpt.nix
Normal file
13
hosts/nb/modules/nvim/chatgpt.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
self: super: {
|
||||
vimPlugins = super.vimPlugins // {
|
||||
chatgpt-nvim = super.vimUtils.buildVimPlugin {
|
||||
pname = "chatgpt-nvim";
|
||||
version = "1.0.0";
|
||||
src = super.fetchgit {
|
||||
url = "https://git.cloonar.com/Cloonar/chatgpt.vim.git";
|
||||
rev = "9a9868c991d2c9d0d2f5bc4c065a839f79c8daa1";
|
||||
sha256 = "sha256-ip+VFMJJWNaoSOyY2nLNVLEb3h37akUdk0du5u81dvc=";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
0
hosts/nb/modules/nvim/config/chatgpt.lua
Normal file
0
hosts/nb/modules/nvim/config/chatgpt.lua
Normal file
@@ -1,6 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.variables = { EDITOR = "vim"; };
|
||||
nixpkgs.overlays = [
|
||||
(import ./chatgpt.nix)
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nodePackages.typescript-language-server
|
||||
@@ -11,6 +14,8 @@
|
||||
gopls
|
||||
lazygit
|
||||
ripgrep
|
||||
lua
|
||||
luaPackages.lyaml
|
||||
(neovim.override {
|
||||
vimAlias = true;
|
||||
configure = {
|
||||
@@ -19,6 +24,7 @@
|
||||
bigfile-nvim
|
||||
bufferline-nvim
|
||||
catppuccin-nvim
|
||||
chatgpt-nvim
|
||||
cmp-buffer
|
||||
cmp-nvim-lsp
|
||||
cmp-path
|
||||
@@ -66,6 +72,7 @@
|
||||
luaConfig = builtins.concatStringsSep "\n" (map luaRequire [
|
||||
"init"
|
||||
"keymappings"
|
||||
"chatgpt"
|
||||
"copilot"
|
||||
"icons"
|
||||
"lspconfig"
|
||||
@@ -86,6 +93,7 @@
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
extraLuaPackages = luaPackages: [ luaPackages.lyaml ];
|
||||
}
|
||||
)];
|
||||
}
|
||||
|
||||
7
hosts/nb/modules/nvim/nvim.nix
Normal file
7
hosts/nb/modules/nvim/nvim.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
self: super: {
|
||||
neovim = super.neovim.override {
|
||||
luaPackages = super.luaPackages // {
|
||||
lyaml = super.luaPackages.lyaml;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user