diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-17 19:26:05 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-17 19:26:05 +0200 |
commit | 4cebe5cc49090282faec84a6b412e30ee9a22619 (patch) | |
tree | 2a7c8f163ef072087b10542a48cde6ddcc1b50ff | |
parent | a8ab2c5cf1e9b0066b690353ce0ac7ea62c9ef9e (diff) |
Format code
-rw-r--r-- | fnl/config/winbar.fnl | 17 |
1 files changed, 9 insertions, 8 deletions
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 [] |