From 74323eb08b357ad01b89605dca938c2f9602d928 Mon Sep 17 00:00:00 2001 From: hoob3rt Date: Tue, 16 Mar 2021 00:05:41 +0100 Subject: [PATCH] refactor: simplified extension sections --- lua/lualine/extensions/fugitive.lua | 5 ++--- lua/lualine/extensions/fzf.lua | 4 +--- lua/lualine/extensions/nerdtree.lua | 4 +--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lua/lualine/extensions/fugitive.lua b/lua/lualine/extensions/fugitive.lua index 1b26f91..32a28ea 100644 --- a/lua/lualine/extensions/fugitive.lua +++ b/lua/lualine/extensions/fugitive.lua @@ -5,11 +5,10 @@ local M = {} M.sections = { lualine_a = { 'FugitiveHead' }, + lualine_z = { 'location' }, } -M.inactive_sections = { - lualine_a = { 'FugitiveHead' }, -} +M.inactive_sections = M.sections M.filetypes = { 'fugitive' } diff --git a/lua/lualine/extensions/fzf.lua b/lua/lualine/extensions/fzf.lua index 73f5835..19a176f 100644 --- a/lua/lualine/extensions/fzf.lua +++ b/lua/lualine/extensions/fzf.lua @@ -11,9 +11,7 @@ M.sections = { lualine_a = { fzf_statusline }, } -M.inactive_sections = { - lualine_a = { fzf_statusline }, -} +M.inactive_sections = M.sections M.filetypes = { 'fzf' } diff --git a/lua/lualine/extensions/nerdtree.lua b/lua/lualine/extensions/nerdtree.lua index 884659e..2fd9f68 100644 --- a/lua/lualine/extensions/nerdtree.lua +++ b/lua/lualine/extensions/nerdtree.lua @@ -7,9 +7,7 @@ M.sections = { lualine_a = { vim.fn.getcwd }, } -M.inactive_sections = { - lualine_a = { vim.fn.getcwd }, -} +M.inactive_sections = M.sections M.filetypes = { 'nerdtree' }