mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 01:38:47 +02:00
enc: lua format custem
This commit is contained in:
parent
65857a4226
commit
384c0b5768
68 changed files with 1450 additions and 1450 deletions
|
@ -1,26 +1,26 @@
|
|||
local model = vim.g.pcode_model
|
||||
if model ~= nil then
|
||||
if model == 1 then
|
||||
require("user.startify")
|
||||
else
|
||||
require("user.dashboard")
|
||||
end
|
||||
if model == 1 then
|
||||
require("user.startify")
|
||||
else
|
||||
require("user.dashboard")
|
||||
end
|
||||
else
|
||||
require("user.startify")
|
||||
require("user.startify")
|
||||
end
|
||||
|
||||
-- Disable statusline in dashboard
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "alpha",
|
||||
callback = function()
|
||||
-- store current statusline value and use that
|
||||
local old_laststatus = vim.opt.laststatus
|
||||
vim.api.nvim_create_autocmd("BufUnload", {
|
||||
buffer = 0,
|
||||
callback = function()
|
||||
vim.opt.laststatus = old_laststatus
|
||||
end,
|
||||
})
|
||||
vim.opt.laststatus = 0
|
||||
end,
|
||||
pattern = "alpha",
|
||||
callback = function()
|
||||
-- store current statusline value and use that
|
||||
local old_laststatus = vim.opt.laststatus
|
||||
vim.api.nvim_create_autocmd("BufUnload", {
|
||||
buffer = 0,
|
||||
callback = function()
|
||||
vim.opt.laststatus = old_laststatus
|
||||
end,
|
||||
})
|
||||
vim.opt.laststatus = 0
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue