diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-08-07 14:22:48 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-08-07 14:22:48 +0200 |
| commit | ecc53220883bdfc6bab7e6500b52bf452085f4a7 (patch) | |
| tree | 554a9f57f4c811f2b76ce65b6ceeec67b59ba2d1 | |
| parent | 03eb44293762bbbe7459b91a4c7bdf23e62a5bf6 (diff) | |
| download | dotfiles-ecc53220883bdfc6bab7e6500b52bf452085f4a7.tar.gz dotfiles-ecc53220883bdfc6bab7e6500b52bf452085f4a7.tar.bz2 dotfiles-ecc53220883bdfc6bab7e6500b52bf452085f4a7.zip | |
Update lualine to display relative path on active window
| -rw-r--r-- | config/nvim/lua/plugins.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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 } |
