Codeium working in Neovim

This commit is contained in:
Trevor Vallender 2023-04-04 09:06:26 +01:00
parent ad996d7e0f
commit f0dca3ba62
5 changed files with 65 additions and 2 deletions

View File

@ -1,5 +1,26 @@
{ {
"nodes": { "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": { "devenv": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
@ -53,6 +74,36 @@
"type": "github" "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": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -264,7 +315,7 @@
"devenv", "devenv",
"flake-compat" "flake-compat"
], ],
"flake-utils": "flake-utils", "flake-utils": "flake-utils_2",
"gitignore": "gitignore", "gitignore": "gitignore",
"nixpkgs": [ "nixpkgs": [
"devenv", "devenv",
@ -288,7 +339,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"codeium": "codeium",
"devenv": "devenv", "devenv": "devenv",
"flake-utils": "flake-utils_3",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"

View File

@ -9,9 +9,14 @@
}; };
devenv.url = "github:cachix/devenv/latest"; devenv.url = "github:cachix/devenv/latest";
hyprland.url = "github:hyprwm/Hyprland"; 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 = { nixosConfigurations = {
ritchie = nixpkgs.lib.nixosSystem { ritchie = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";

View File

@ -105,6 +105,7 @@ in
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
}); });
}) })
inputs.codeium.overlays.x86_64-linux.default
]; ];

View File

@ -84,6 +84,7 @@
cmp-path cmp-path
cmp-treesitter cmp-treesitter
cmp-vsnip cmp-vsnip
codeium-nvim
friendly-snippets # Collection of predefined snippets friendly-snippets # Collection of predefined snippets
fugitive-gitlab-vim fugitive-gitlab-vim
git-messenger-vim git-messenger-vim
@ -96,6 +97,7 @@
nvim-treesitter.withAllGrammars nvim-treesitter.withAllGrammars
nvim-tree-lua nvim-tree-lua
nvim-web-devicons nvim-web-devicons
plenary-nvim
telescope-nvim telescope-nvim
vim-fugitive vim-fugitive
vim-rhubarb # GitHub support for fugitive vim-rhubarb # GitHub support for fugitive

View File

@ -45,6 +45,7 @@ require'nvim-treesitter.configs'.setup {
} }
-- Completion and LSP -- Completion and LSP
require("codeium").setup()
local cmp = require'cmp' local cmp = require'cmp'
cmp.setup { cmp.setup {
snippet = { snippet = {
@ -68,6 +69,7 @@ cmp.setup {
{ name = 'vsnip' }, { name = 'vsnip' },
{ name = 'path' }, { name = 'path' },
{ name = 'treesitter' }, { name = 'treesitter' },
{ name = 'codeium' },
}) })
} }
local capabilities = require('cmp_nvim_lsp').default_capabilities() local capabilities = require('cmp_nvim_lsp').default_capabilities()