mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
update config
This commit is contained in:
parent
cc5c9ed8d0
commit
ca7eebe161
5 changed files with 25 additions and 9 deletions
|
@ -20,6 +20,7 @@ local M = {}
|
|||
-- [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
|
||||
-- [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
|
||||
-- }
|
||||
-- M.footer = "PCode"
|
||||
|
||||
M.model = 1 -- isi dengan 1 atau 2 untuk model dashboard
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
local M = {
|
||||
disable = 1, -- 0 ( format jalan) 1 (fromat off)
|
||||
disable = 0, -- 0 ( format jalan) 1 (fromat off)
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
@ -38,12 +38,17 @@ dashboard.section.buttons.val = {
|
|||
}
|
||||
|
||||
local function footer()
|
||||
-- NOTE: requires the fortune-mod package to work
|
||||
-- local handle = io.popen("fortune")
|
||||
-- local fortune = handle:read("*a")
|
||||
-- handle:close()
|
||||
-- return fortune
|
||||
return "Pojok Code"
|
||||
local footer_text = "Pojok Code"
|
||||
if data_exists then
|
||||
if type(custom_dasboard) == "table" then
|
||||
local data_txt = custom_dasboard.footer
|
||||
if data_txt ~= nil then
|
||||
footer_text = data_txt
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return footer_text
|
||||
end
|
||||
|
||||
dashboard.section.footer.val = footer()
|
||||
|
|
|
@ -41,8 +41,18 @@ startify.nvim_web_devicons.enabled = false
|
|||
startify.section.bottom_buttons.val = {
|
||||
startify.button("q", " Quit NVIM", ":qa<CR>"),
|
||||
}
|
||||
|
||||
local footer_text = "Pojok Code"
|
||||
if data_exists then
|
||||
if type(custom_dasboard) == "table" then
|
||||
local data_txt = custom_dasboard.footer
|
||||
if data_txt ~= nil then
|
||||
footer_text = data_txt
|
||||
end
|
||||
end
|
||||
end
|
||||
startify.section.footer.val = {
|
||||
{ type = "text", val = "Pojok Code" },
|
||||
{ type = "text", val = footer_text },
|
||||
}
|
||||
-- ignore filetypes in MRU
|
||||
startify.mru_opts.ignore = function(path, ext)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue