diff --git a/lazy-lock.json b/lazy-lock.json index 5ca5480..d235746 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -44,7 +44,7 @@ "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "smart-splits.nvim": { "branch": "master", "commit": "b38431f1f68bc43d6bf9d1edb21c2bcb06b1197c" }, "symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" }, - "telescope.nvim": { "branch": "master", "commit": "ad37745d4d009576eb6f4b9b6b644c3f91e0126b" }, + "telescope.nvim": { "branch": "master", "commit": "443e5a6802849f9e4611a2d91db01b8a37350524" }, "todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" }, "toggleterm.nvim": { "branch": "main", "commit": "2a787c426ef00cb3488c11b14f5dcf892bbd0bda" }, "tokyonight.nvim": { "branch": "main", "commit": "a0abe53df53616d13da327636cb0bcac3ea7f5af" }, diff --git a/lua/custom/dashboard.lua b/lua/custom/dashboard.lua index e317010..3fa0473 100644 --- a/lua/custom/dashboard.lua +++ b/lua/custom/dashboard.lua @@ -20,6 +20,7 @@ local M = {} -- [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]], -- [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]], -- } +-- M.footer = "PCode" M.model = 1 -- isi dengan 1 atau 2 untuk model dashboard diff --git a/lua/custom/format_onsave.lua b/lua/custom/format_onsave.lua index 87ce7dc..085c4ef 100644 --- a/lua/custom/format_onsave.lua +++ b/lua/custom/format_onsave.lua @@ -1,5 +1,5 @@ local M = { - disable = 1, -- 0 ( format jalan) 1 (fromat off) + disable = 0, -- 0 ( format jalan) 1 (fromat off) } return M diff --git a/lua/user/dashboard.lua b/lua/user/dashboard.lua index 48249eb..8a88afd 100644 --- a/lua/user/dashboard.lua +++ b/lua/user/dashboard.lua @@ -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() diff --git a/lua/user/startify.lua b/lua/user/startify.lua index 3885ffa..972a593 100644 --- a/lua/user/startify.lua +++ b/lua/user/startify.lua @@ -41,8 +41,18 @@ startify.nvim_web_devicons.enabled = false startify.section.bottom_buttons.val = { startify.button("q", " Quit NVIM", ":qa"), } + +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)