diff --git a/flake.lock b/flake.lock index 0d0b02c..8fcad62 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "codeium": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1680497817, + "narHash": "sha256-zcBm1VCZRFrDsxs0OQOHI4LDhsQGWQyG/hb3/ke7dLY=", + "owner": "jcdickinson", + "repo": "codeium.nvim", + "rev": "1b31946c11efb6e8d500eb0d6e69433e9f9df1a2", + "type": "github" + }, + "original": { + "owner": "jcdickinson", + "repo": "codeium.nvim", + "type": "github" + } + }, "devenv": { "inputs": { "flake-compat": "flake-compat", @@ -53,6 +74,36 @@ "type": "github" } }, + "flake-utils_2": { + "locked": { + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "locked": { + "lastModified": 1678901627, + "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -264,7 +315,7 @@ "devenv", "flake-compat" ], - "flake-utils": "flake-utils", + "flake-utils": "flake-utils_2", "gitignore": "gitignore", "nixpkgs": [ "devenv", @@ -288,7 +339,9 @@ }, "root": { "inputs": { + "codeium": "codeium", "devenv": "devenv", + "flake-utils": "flake-utils_3", "home-manager": "home-manager", "hyprland": "hyprland", "nixpkgs": "nixpkgs_3" diff --git a/flake.nix b/flake.nix index d1c9711..f6d7a9f 100644 --- a/flake.nix +++ b/flake.nix @@ -9,9 +9,14 @@ }; devenv.url = "github:cachix/devenv/latest"; hyprland.url = "github:hyprwm/Hyprland"; + flake-utils.url = "github:numtide/flake-utils"; + codeium = { + url = "github:jcdickinson/codeium.nvim"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = inputs@{ nixpkgs, home-manager, devenv, hyprland, ... }: { + outputs = inputs@{ nixpkgs, home-manager, devenv, hyprland, codeium, ... }: { nixosConfigurations = { ritchie = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; diff --git a/system/configuration.nix b/system/configuration.nix index 3d5e3c4..eea079d 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -105,6 +105,7 @@ in mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; }); }) + inputs.codeium.overlays.x86_64-linux.default ]; diff --git a/users/tsv/home.nix b/users/tsv/home.nix index 50d8da6..ee1f1ed 100644 --- a/users/tsv/home.nix +++ b/users/tsv/home.nix @@ -84,6 +84,7 @@ cmp-path cmp-treesitter cmp-vsnip + codeium-nvim friendly-snippets # Collection of predefined snippets fugitive-gitlab-vim git-messenger-vim @@ -96,6 +97,7 @@ nvim-treesitter.withAllGrammars nvim-tree-lua nvim-web-devicons + plenary-nvim telescope-nvim vim-fugitive vim-rhubarb # GitHub support for fugitive diff --git a/users/tsv/nvim/init.lua b/users/tsv/nvim/init.lua index b5e23d8..06b6624 100644 --- a/users/tsv/nvim/init.lua +++ b/users/tsv/nvim/init.lua @@ -45,6 +45,7 @@ require'nvim-treesitter.configs'.setup { } -- Completion and LSP +require("codeium").setup() local cmp = require'cmp' cmp.setup { snippet = { @@ -68,6 +69,7 @@ cmp.setup { { name = 'vsnip' }, { name = 'path' }, { name = 'treesitter' }, + { name = 'codeium' }, }) } local capabilities = require('cmp_nvim_lsp').default_capabilities()