avoid using q! for quitting vim
This commit is contained in:
parent
8f733755e8
commit
8a21e73cc5
|
@ -6,8 +6,8 @@ if not present then
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
function MyFunc(a,b,c,d)
|
function Quitvim(a,b,c,d)
|
||||||
q!
|
q
|
||||||
endfunction
|
endfunction
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ bufferline.setup {
|
||||||
custom_areas = {
|
custom_areas = {
|
||||||
right = function()
|
right = function()
|
||||||
local result = {}
|
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
|
return result
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue