From 0e061f44ef5fba990e43d750dc1dd15edde36f59 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 5 Sep 2023 00:41:12 +0200 Subject: [PATCH] Replacing shade with twilight --- lua/taken/plugins/shade.lua | 12 ------------ lua/taken/plugins/twilight.lua | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-) delete mode 100644 lua/taken/plugins/shade.lua create mode 100644 lua/taken/plugins/twilight.lua diff --git a/lua/taken/plugins/shade.lua b/lua/taken/plugins/shade.lua deleted file mode 100644 index 90f6b5e..0000000 --- a/lua/taken/plugins/shade.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - "sunjon/shade.nvim", - event = { "WinEnter", "BufWinEnter" }, - config = function() - local shade = require("shade") - shade.setup({ - keys = { - toggle = "ts" - } - }) - end -} diff --git a/lua/taken/plugins/twilight.lua b/lua/taken/plugins/twilight.lua new file mode 100644 index 0000000..c3a1f4e --- /dev/null +++ b/lua/taken/plugins/twilight.lua @@ -0,0 +1,24 @@ +return { + "folke/twilight.nvim", + config = function() + local twilight = require("twilight") + + twilight.setup({ + dimming = { + alpha = 0.25, + color = { "Normal", "#ffffff" }, + term_bg = "#000000", + inactive = true, + }, + context = 100000, + treesitter = false, + expand = { + "function", + "method", + "table", + "if_statement", + }, + exclude = {}, + }) + end, +}