From 71d538630b226da37e4ef21c5a84d6fad5f55421 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 7 Apr 2022 22:32:53 +0200 Subject: fix(load plugin): correct loading err --- fnl/config/lualine.fnl | 57 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 29 deletions(-) (limited to 'fnl/config/lualine.fnl') diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl index 908b6d2..8f12049 100644 --- a/fnl/config/lualine.fnl +++ b/fnl/config/lualine.fnl @@ -30,32 +30,31 @@ :cond hide_in_width :color {}}) -(let [(ok? lualine) util.load-plugin :lualine] - (when ok? - (lualine.setup { - :options { - :icons_enabled true - :theme "auto" - :component_separators { :left "" :right "" } - :section_separators { :left "" :right "" } - :disabled_filetypes [ "alpha" "dashboard" "NvimTree" "Outline" ] - :always_divide_middle true - } - :sections { - :lualine_a [ "mode" ] - :lualine_b { 1 branch 2 "filename" } - :lualine_c { 1 diff } - :lualine_x { 1 diagnostics 2 filetype } - :lualine_y {} - :lualine_z [ "location" "progress" "encoding" ] - } - :inactive_sections { - :lualine_a [ "mode" ] - :lualine_b [ "filename" ] - :lualine_c {} - :lualine_x {} - :lualine_y {} - :lualine_z [ "location" "progress" "encoding" ] - } - :tabline {} - :extensions {}}))) +(let [lualine (util.load-plugin :lualine)] + (lualine.setup { + :options { + :icons_enabled true + :theme "auto" + :component_separators { :left "" :right "" } + :section_separators { :left "" :right "" } + :disabled_filetypes [ "alpha" "dashboard" "NvimTree" "Outline" ] + :always_divide_middle true + } + :sections { + :lualine_a [ "mode" ] + :lualine_b { 1 branch 2 "filename" } + :lualine_c { 1 diff } + :lualine_x { 1 diagnostics 2 filetype } + :lualine_y {} + :lualine_z [ "location" "progress" "encoding" ] + } + :inactive_sections { + :lualine_a [ "mode" ] + :lualine_b [ "filename" ] + :lualine_c {} + :lualine_x {} + :lualine_y {} + :lualine_z [ "location" "progress" "encoding" ] + } + :tabline {} + :extensions {}})) -- cgit v1.2.3-70-g09d2