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/nvim') 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 From ce3c6a8d435272de5b549cd51c7f8fa915b64518 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Aug 2024 17:31:24 +0200 Subject: Update telescope live_grep shortcut to avoid delay --- config/nvim/lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/nvim') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 697d8fe..7741484 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -474,7 +474,7 @@ return require("packer").startup(function() map("n", "H", "Telescope help_tags", {}) map("n", ";", "Telescope commands", {}) -- map("n", "p", "Telescope tags", {}) - map("n", "g", "Telescope live_grep", {}) + map("n", "gg", "Telescope live_grep", { noremap = true, silent = true }) map("n", "G", "Telescope grep_string", {}) end } -- cgit