mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
enc: dashboard quit info
This commit is contained in:
parent
babcd3c9dd
commit
56e8da9c8e
2 changed files with 72 additions and 72 deletions
|
@ -19,7 +19,7 @@ if data_board ~= nil then
|
||||||
board = data_board
|
board = data_board
|
||||||
end
|
end
|
||||||
|
|
||||||
local dashboard = require("alpha.themes.dashboard")
|
local dashboard = require "alpha.themes.dashboard"
|
||||||
dashboard.section.header.val = board
|
dashboard.section.header.val = board
|
||||||
dashboard.section.buttons.val = {
|
dashboard.section.buttons.val = {
|
||||||
dashboard.button("F", " Find file", ":Telescope find_files <CR>"),
|
dashboard.button("F", " Find file", ":Telescope find_files <CR>"),
|
||||||
|
@ -29,7 +29,7 @@ dashboard.section.buttons.val = {
|
||||||
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
|
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
|
||||||
dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"),
|
dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"),
|
||||||
dashboard.button("z", " Lazy", ":Lazy<CR>"),
|
dashboard.button("z", " Lazy", ":Lazy<CR>"),
|
||||||
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
dashboard.button("q", " Quit", ":qa<CR>"),
|
||||||
}
|
}
|
||||||
|
|
||||||
dashboard.section.footer.opts.hl = "Type"
|
dashboard.section.footer.opts.hl = "Type"
|
||||||
|
@ -62,8 +62,8 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
vim.api.nvim_create_autocmd({ "User" }, {
|
vim.api.nvim_create_autocmd({ "User" }, {
|
||||||
pattern = { "AlphaReady" },
|
pattern = { "AlphaReady" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd([[
|
vim.cmd [[
|
||||||
set laststatus=0 | autocmd BufUnload <buffer> set laststatus=3
|
set laststatus=0 | autocmd BufUnload <buffer> set laststatus=3
|
||||||
]])
|
]]
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
local alpha = require("alpha")
|
local alpha = require "alpha"
|
||||||
local startify = require("alpha.themes.startify")
|
local startify = require "alpha.themes.startify"
|
||||||
local dash_model = {}
|
local dash_model = {}
|
||||||
dash_model = {
|
dash_model = {
|
||||||
[[ _ __ __ ]],
|
[[ _ __ __ ]],
|
||||||
|
@ -34,7 +34,7 @@ startify.nvim_web_devicons.enabled = false
|
||||||
-- startify.nvim_web_devicons.highlight = 'Keyword'
|
-- startify.nvim_web_devicons.highlight = 'Keyword'
|
||||||
--
|
--
|
||||||
startify.section.bottom_buttons.val = {
|
startify.section.bottom_buttons.val = {
|
||||||
startify.button("q", " Quit NVIM", ":qa<CR>"),
|
startify.button("q", " Quit", ":qa<CR>"),
|
||||||
}
|
}
|
||||||
|
|
||||||
local footer_text = "Pojok Code"
|
local footer_text = "Pojok Code"
|
||||||
|
@ -63,9 +63,9 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
vim.api.nvim_create_autocmd({ "User" }, {
|
vim.api.nvim_create_autocmd({ "User" }, {
|
||||||
pattern = { "AlphaReady" },
|
pattern = { "AlphaReady" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd([[
|
vim.cmd [[
|
||||||
set laststatus=0 | autocmd BufUnload <buffer> set laststatus=3
|
set laststatus=0 | autocmd BufUnload <buffer> set laststatus=3
|
||||||
]])
|
]]
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
-- ignore filetypes in MRU
|
-- ignore filetypes in MRU
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue