From d5ec01da3f214a46056acfeb465de9da7ea733c9 Mon Sep 17 00:00:00 2001 From: Nicolai Van der Storm Date: Wed, 18 Oct 2023 09:51:50 +0200 Subject: [PATCH] added nvim-colorizer.lua to neovim --- flake.lock | 18 +++++++++--------- nix/users/base/neovim/default.nix | 5 +++++ nix/users/base/neovim/plugins/colorizer.lua | 7 +++++++ 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 nix/users/base/neovim/plugins/colorizer.lua diff --git a/flake.lock b/flake.lock index e48e38b..8f44453 100644 --- a/flake.lock +++ b/flake.lock @@ -25,11 +25,11 @@ ] }, "locked": { - "lastModified": 1697531492, - "narHash": "sha256-v813jggnyO+wLMKvbkeOruZCh6wubVZEdfxKqJS4bq8=", + "lastModified": 1697611555, + "narHash": "sha256-8nYMduRQfGSQJr2cDMyodsuGlRcJAy0Ko8K4KkjurP8=", "owner": "nix-community", "repo": "home-manager", - "rev": "7a46e6cb3ca02a478bdafc53c0ac89da6efc050c", + "rev": "05649393ac1f34980a5cf6a6e89de77626c9182b", "type": "github" }, "original": { @@ -47,11 +47,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1697540776, - "narHash": "sha256-Jr0kMlZfCmx3JLL4ZvfonP3GRZdLy+NdiHeeth0rN7o=", + "lastModified": 1697569807, + "narHash": "sha256-NCyGgz4ppDf7uEfBrR7LYQI4BH9umOeUrxK25LyEdo4=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "20e7ccd48033dcacc233b2a2f46d385049bf299b", + "rev": "a0b675ec9e57af8bc631fc8cc54d062b58669a9f", "type": "github" }, "original": { @@ -137,11 +137,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1697059129, - "narHash": "sha256-9NJcFF9CEYPvHJ5ckE8kvINvI84SZZ87PvqMbH6pro0=", + "lastModified": 1697456312, + "narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5e4c2ada4fcd54b99d56d7bd62f384511a7e2593", + "rev": "ca012a02bf8327be9e488546faecae5e05d7d749", "type": "github" }, "original": { diff --git a/nix/users/base/neovim/default.nix b/nix/users/base/neovim/default.nix index 0adc7e1..e7195d2 100644 --- a/nix/users/base/neovim/default.nix +++ b/nix/users/base/neovim/default.nix @@ -41,6 +41,11 @@ plugin = indent-blankline-nvim; config = toLuaFile ./plugins/indent.lua; } + + { + plugin = nvim-colorizer-lua; + config = toLuaFile ./plugins/colorizer.lua; + } ]; }; } diff --git a/nix/users/base/neovim/plugins/colorizer.lua b/nix/users/base/neovim/plugins/colorizer.lua new file mode 100644 index 0000000..92305b0 --- /dev/null +++ b/nix/users/base/neovim/plugins/colorizer.lua @@ -0,0 +1,7 @@ +local status, plugin = pcall(require, 'colorizer') +if not status then + print('Error with plugin: ', plugin) + return +end + +plugin.setup() \ No newline at end of file