From 921f0b307b8d66b8a3e747967eef853d5247bbc5 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Sat, 16 Nov 2024 09:05:03 -0500 Subject: [PATCH] add auto color adjustment to make devicons look a bit nicer with themes --- .../nvim/lua/plugins/devicons-auto-colors.lua | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/nvim/lua/plugins/devicons-auto-colors.lua diff --git a/.config/nvim/lua/plugins/devicons-auto-colors.lua b/.config/nvim/lua/plugins/devicons-auto-colors.lua new file mode 100644 index 0000000..55d6f79 --- /dev/null +++ b/.config/nvim/lua/plugins/devicons-auto-colors.lua @@ -0,0 +1,22 @@ +return { + "rachartier/tiny-devicons-auto-colors.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + event = "VeryLazy", + + config = function() + require("tiny-devicons-auto-colors").setup { + cache = { + enabled = true, + path = vim.fn.stdpath "cache" .. "/tiny-devicons-auto-colors-cache.json", + }, + precise_search = { + enabled = true, + iteration = 10, + precision = 20, + threshold = 23, + }, + } + end, +}