From ecc53220883bdfc6bab7e6500b52bf452085f4a7 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Aug 2024 14:22:48 +0200 Subject: Update lualine to display relative path on active window --- config/nvim/lua/plugins.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index f5f22fc..697d8fe 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -379,7 +379,11 @@ return require("packer").startup(function() icons_enabled = true, section_separators = '', component_separators = '', - } + }, + sections = { + -- path=1 for Relative path (https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options) + lualine_c = {{'filename', path = 1}}, + }, } end } -- cgit