nvim: Add neocodium

This commit is contained in:
Daniel Lundin 2024-11-07 17:57:44 +01:00
parent 2bad613a8a
commit d3b07a2e77
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -22,6 +22,7 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
black black
codeium
cue cue
go go
gopls gopls
@ -76,6 +77,36 @@
targets-vim targets-vim
ts-comments-nvim ts-comments-nvim
{
plugin = codeium-nvim;
type = "lua";
config = ''
require'codeium'.setup {
enable_chat = false,
}
'';
}
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "neocodeium";
src = pkgs.fetchFromGitHub {
owner = "monkoose";
repo = "neocodeium";
rev = "4da81528468b33585c411f31eb390dce573ccb14"; # v1.8.0
hash = "sha256-1n9nNqBNwNDSzbAkm8eB4HZLNy5HmMg25jPwQAnW5OU=";
};
};
type = "lua";
config = ''
local neocodeium =require('neocodeium')
neocodeium.setup()
vim.keymap.set("i", "<C-j>", neocodeium.accept, { remap = true })
vim.keymap.set("i", "<A-f>", neocodeium.accept, { remap = true })
vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete, { remap = true })
'';
}
{ {
plugin = pkgs.vimUtils.buildVimPlugin { plugin = pkgs.vimUtils.buildVimPlugin {
name = "diagflow"; name = "diagflow";
@ -154,7 +185,7 @@
} }
{ {
plugin = nvim-treesitter-textobjects; # helix-style selection of TS tree plugin = nvim-treesitter-textobjects;
type = "lua"; type = "lua";
config = '' config = ''
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
@ -178,7 +209,7 @@
} }
{ {
plugin = nvim-lspconfig; # Interface for LSPs plugin = nvim-lspconfig;
type = "lua"; type = "lua";
config = lib.fileContents ./lsp.lua; config = lib.fileContents ./lsp.lua;
} }