From f52dce93777c41671217ced2894c28d6da9114a0 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 18 Aug 2021 23:09:12 +0200 Subject: Remove twilight --- .config/nvim/config.lua | 8 -------- .config/nvim/lua/extra/twilight.lua | 30 ------------------------------ 2 files changed, 38 deletions(-) delete mode 100644 .config/nvim/lua/extra/twilight.lua diff --git a/.config/nvim/config.lua b/.config/nvim/config.lua index 0bfee43..3ecb64f 100644 --- a/.config/nvim/config.lua +++ b/.config/nvim/config.lua @@ -100,14 +100,6 @@ options.plugins = { end, }, - { - "folke/twilight.nvim", - config = function() - require("extra.twilight").config() - end, - -- cmd = "ZenMode", - }, - { "nacro90/numb.nvim", event = "BufRead", diff --git a/.config/nvim/lua/extra/twilight.lua b/.config/nvim/lua/extra/twilight.lua deleted file mode 100644 index b76563a..0000000 --- a/.config/nvim/lua/extra/twilight.lua +++ /dev/null @@ -1,30 +0,0 @@ -local M = {} -local Log = require "core.log" - -M.config = function() - local status_ok, twilight = pcall(require, "twilight") - if not status_ok then - Log:get_default().error "Failed to load twilight" - return - end - - twilight.setup { - dimming = { - alpha = 0.25, -- amount of dimming - -- we try to get the foreground from the highlight groups or fallback color - color = { "Normal", "#ffffff" }, - }, - context = 15, -- amount of lines we will try to show around the current line - -- treesitter is used to automatically expand the visible text, - -- but you can further control the types of nodes that should always be fully expanded - expand = { - "function", - "method", - "table", - "if_statement", - }, - exclude = {}, -- exclude these filetypes - } -end - -return M -- cgit v1.2.3-70-g09d2