From 79fa0e14c3e9315f9d93415329023290a99a9066 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sat, 11 Dec 2021 13:37:23 -0500 Subject: [PATCH] Change some more stuff with filename component - Special case for git commit files - Move to single quotes for consistency --- lua/plugins.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index c8cd1d8..5333435 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -52,9 +52,11 @@ vim.cmd('COQnow -s') local function filenameIfFileOpened() local filename = vim.fn.expand('%:t') if filename == '' then - return "" + return '' + elseif filename == 'COMMIT_EDITMSG' then + return '[Git commit]' elseif vim.bo.modified then - return filename .. "*" + return filename .. '*' else return filename end