From 4cebe5cc49090282faec84a6b412e30ee9a22619 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 17 Jul 2022 19:26:05 +0200 Subject: Format code --- fnl/config/winbar.fnl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'fnl/config') diff --git a/fnl/config/winbar.fnl b/fnl/config/winbar.fnl index 9336e6b..9f9cbb3 100644 --- a/fnl/config/winbar.fnl +++ b/fnl/config/winbar.fnl @@ -33,14 +33,15 @@ icon)))))) (defn- get-winbar [] - (if (and (not= (ignore) true) (not= (is-empty (get-filename)) true)) - (let [icon (get-icon)] - (if (not= icon nil) - (vim.api.nvim_set_option_value :winbar (.. " " icon " " "%t%m") - {:scope :local}) - (vim.api.nvim_set_option_value :winbar (.. " " "%t%m") - {:scope :local}))) - (vim.api.nvim_set_option_value :winbar "" {:scope :local}))) + (if (and (not= (ignore) true) (not= (is-empty (get-filename)) true)) + (let [icon (get-icon)] + (if (not= icon nil) + (vim.api.nvim_set_option_value :winbar + (.. " " icon " " "%t%m") + {:scope :local}) + (vim.api.nvim_set_option_value :winbar (.. " " "%t%m") + {:scope :local}))) + (vim.api.nvim_set_option_value :winbar "" {:scope :local}))) (nvim.create_autocmd "BufEnter,CursorMoved,CursorHold,BufWinEnter,BufFilePost,InsertEnter,BufWritePost,TabClosed" {:callback (lambda [] -- cgit v1.2.3-70-g09d2