neovim: Add chameleon.nvim for kitty support

Makes it possible to change color schemes in neovim and have the color
of padding from kitty change as well.
This commit is contained in:
Donovan Glover 2024-08-02 21:07:45 -04:00
parent 71bcb6fdcf
commit ca52770815
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 32 additions and 0 deletions

View File

@ -147,6 +147,13 @@ in
require("ibl").setup()
'';
}
{
plugin = pkgs.callPackage ../packages/chameleon-nvim.nix { };
type = "lua";
config = /* lua */ ''
require("chameleon").setup()
'';
}
{
plugin = gitsigns-nvim;
type = "lua";

View File

@ -0,0 +1,25 @@
{ lib
, vimUtils
, fetchFromGitHub
}:
vimUtils.buildVimPlugin {
pname = "chameleon-nvim";
version = "0-unstable-2024-03-19";
src = fetchFromGitHub {
owner = "shaun-mathew";
repo = "Chameleon.nvim";
rev = "d682b970cc75a66c40cab77ab956ef44b0f82cd8";
hash = "sha256-RRFTlybAlTbAuP1cU3WJVk8FZGvQqYR7LXWxenGcY0I=";
};
meta = {
description = "Sync kitty's background color with your neovim colorscheme";
homepage = "https://github.com/shaun-mathew/Chameleon.nvim";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ donovanglover ];
mainProgram = "chameleon-nvim";
platforms = lib.platforms.all;
};
}