From eb1ccd9f446c55784a36d10fd6327cc185e771ee Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 7 Dec 2025 00:03:45 +0100 Subject: [PATCH] fixed fyler config --- lua/plugins/witch-line.lua | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lua/plugins/witch-line.lua diff --git a/lua/plugins/witch-line.lua b/lua/plugins/witch-line.lua new file mode 100644 index 0000000..ed98ac4 --- /dev/null +++ b/lua/plugins/witch-line.lua @@ -0,0 +1,48 @@ +return { + 'sontungexpt/witch-line', + dependencies = { + 'nvim-tree/nvim-web-devicons', + }, + lazy = false, -- Almost component is lazy load by default. So you can set lazy to false + opts = { + components = { + 'mode', + 'file.name', + 'file.modified', + 'file.icon', + 'file.size', + -- { + -- id = 'component_id', -- Unique identifier + -- padding = { left = 1, right = 1 }, -- Padding around the component + -- static = { some_key = 'some_value' }, -- Static metadata + -- timing = false, -- No timing updates + -- style = { fg = '#ffffff', bg = '#000000', bold = true }, -- Style override + -- min_screen_width = 80, -- Hide if screen width < 80 + -- hidden = function() -- Hide condition + -- return vim.bo.buftype == 'nofile' + -- end, + -- left_style = { fg = '#ff0000' }, -- Left style override + -- update = function(self, ctx, static, session_id) -- Main content generator + -- return vim.fn.expand('%:t') + -- end, + -- ref = { -- References to other components + -- events = { 'file.name' }, + -- style = 'file.name', + -- static = 'file.name', + -- }, + -- }, + 'git.branch', + 'git.added', + 'git.removed', + 'git.modified', + -- 'copilot', + 'diagnostic.error', + 'diagnostic.warn', + 'diagnostic.info', + '%=', + 'encoding', + 'cursor.pos', + }, + }, + enabled = false, +}