From ca5277081570abdecbfcbf4126928c8e357189cd Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 2 Aug 2024 21:07:45 -0400 Subject: [PATCH] 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. --- home/neovim.nix | 7 +++++++ packages/chameleon-nvim.nix | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 packages/chameleon-nvim.nix diff --git a/home/neovim.nix b/home/neovim.nix index 25d85738..250e911d 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -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"; diff --git a/packages/chameleon-nvim.nix b/packages/chameleon-nvim.nix new file mode 100644 index 00000000..cfdd5624 --- /dev/null +++ b/packages/chameleon-nvim.nix @@ -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; + }; +}