From 8a21e73cc5f175e1b274a13fe6bc0234c2a6d9cf Mon Sep 17 00:00:00 2001 From: siduck76 Date: Thu, 26 Aug 2021 16:28:21 +0530 Subject: [PATCH] avoid using q! for quitting vim --- lua/plugins/configs/bufferline.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/plugins/configs/bufferline.lua b/lua/plugins/configs/bufferline.lua index b30eedf..f47846a 100644 --- a/lua/plugins/configs/bufferline.lua +++ b/lua/plugins/configs/bufferline.lua @@ -6,8 +6,8 @@ if not present then end vim.cmd [[ - function MyFunc(a,b,c,d) - q! + function Quitvim(a,b,c,d) + q endfunction ]] @@ -34,7 +34,7 @@ bufferline.setup { custom_areas = { right = function() local result = {} - table.insert(result, { text = "%@MyFunc@  %X", guifg = colors.red, guibg = colors.black }) + table.insert(result, { text = "%@Quitvim@  %X", guifg = colors.red, guibg = colors.black }) return result end, },