From 53685b9e5e20178480df081271cafe831f10ab8d Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 10 Jun 2023 20:06:20 -0400 Subject: [PATCH] neovim: Add vim-nix-rummik This change enables syntax highlighting of Nix strings with comments. --- modules/neovim/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/neovim/default.nix b/modules/neovim/default.nix index 0927ff27..2115a58a 100644 --- a/modules/neovim/default.nix +++ b/modules/neovim/default.nix @@ -1,4 +1,15 @@ -{pkgs, ...}: { +{pkgs, ...}: let + vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix { + pname = "vim-nix"; + version = "0def8020f152a51c011a707680780dac61a8989a"; + src = pkgs.fetchFromGitHub { + owner = "rummik"; + repo = "vim-nix"; + rev = "0def8020f152a51c011a707680780dac61a8989a"; + sha256 = "sha256-Q+Jx6/MgeE2hsd/a6FqfXpAOaRcNymZW6t75hYCcH4E="; + }; + }; +in { programs.neovim.enable = true; home-manager.sharedModules = [ @@ -249,6 +260,7 @@ neoformat bufdelete-nvim vim-crystal + vim-nix-rummik ]; };