From b05e5a45c833e0a398ea9b11ed4ca0ad06a8228a Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 15 Aug 2024 14:56:14 +0900 Subject: [PATCH] Install kdl.vim This plugin is not listed in https://github.com/NixOS/nixpkgs/blob/959b505da370ffbb221e1af074e3c5c54ee2a750/pkgs/applications/editors/vim/plugins/generated.nix --- home-manager/editor.nix | 5 ++++- pkgs/default.nix | 2 ++ pkgs/kdl.vim/default.nix | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 pkgs/kdl.vim/default.nix diff --git a/home-manager/editor.nix b/home-manager/editor.nix index 56690687..5639ff4b 100644 --- a/home-manager/editor.nix +++ b/home-manager/editor.nix @@ -71,7 +71,10 @@ programs.vim = { enable = true; # nix-env -f '' -qaP -A vimPlugins - plugins = [ pkgs.vimPlugins.iceberg-vim ]; + plugins = [ + pkgs.vimPlugins.iceberg-vim + homemade-pkgs.kdl-vim + ]; settings = { background = "dark"; diff --git a/pkgs/default.nix b/pkgs/default.nix index 9e5b1850..22c7bd68 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -58,4 +58,6 @@ micro-fzfinder = pkgs.callPackage ./micro-fzfinder { }; micro-nordcolors = pkgs.callPackage ./micro-nordcolors { }; + + kdl-vim = pkgs.callPackage ./kdl.vim { }; } diff --git a/pkgs/kdl.vim/default.nix b/pkgs/kdl.vim/default.nix new file mode 100644 index 00000000..b4c345d5 --- /dev/null +++ b/pkgs/kdl.vim/default.nix @@ -0,0 +1,15 @@ +{ pkgs, fetchFromGitHub }: + +pkgs.vimUtils.buildVimPlugin { + pname = "kdl.vim"; + version = "2023-02-20"; + + src = fetchFromGitHub { + owner = "imsnif"; + repo = "kdl.vim"; + rev = "b84d7d3a15d8d30da016cf9e98e2cfbe35cddee5"; + sha256 = "IajKK1EjrKs6b2rotOj+RlBBge9Ii2m/iuIuefnjAE4="; + }; + + meta.homepage = "https://github.com/imsnif/kdl.vim"; +}