From 7e5c1982961174f208a3591c7fa19d7ae2ba4085 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Mon, 7 Apr 2025 15:29:09 +0200 Subject: [PATCH] feat(lualine): add relative path in filename - Useful for node architecture where everything is named `inner.js` --- lua/plugins-configure.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lua/plugins-configure.lua b/lua/plugins-configure.lua index 984eb22..9c699e1 100644 --- a/lua/plugins-configure.lua +++ b/lua/plugins-configure.lua @@ -172,6 +172,22 @@ require('lazy').setup({ component_separators = '|', section_separators = '', }, + sections = { + lualine_c = { + { + 'filename', + path = 1, + } + }, + }, + inactive_sections = { + lualine_c = { + { + 'filename', + path = 1, + } + }, + }, symbols = { error = " ", warn = " ", @@ -281,7 +297,7 @@ require('lazy').setup({ { "nvim-neorg/neorg", dependencies = { "luarocks.nvim", { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" } }, - lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default + lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default -- version = "*", -- Pin Neorg to the latest stable release config = function() require("neorg").setup {