Update nvim dashboard. Add atuin.

This commit is contained in:
Jan Eitzinger 2024-02-23 09:46:44 +01:00
parent a9be930794
commit 2fabc35f35
3 changed files with 62 additions and 4 deletions

View File

@ -33,7 +33,7 @@ require("lazy").setup({
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = { enabled = true }, -- automatically check for plugin updates
checker = { enabled = true, notify = false, frequency = 259200 }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins

View File

@ -244,4 +244,61 @@ return {
}
end,
},
{
"nvimdev/dashboard-nvim",
event = "VimEnter",
opts = function(_, opts)
local logo = [[
_ _ _ _
| | (_) | | | |
_ __ ___ ___ ___| |__ _ _ _ ___| |__ __ _ _ __ __| |
| '_ ` _ \ / _ \ / _ \ '_ \| | | | / __| '_ \ / _` | '_ \ / _` |
| | | | | | (_) | __/ |_) | | |_| \__ \ |_) | (_| | | | | (_| |
|_| |_| |_|\___/ \___|_.__/|_|\__,_|___/_.__/ \__,_|_| |_|\__,_|
]]
logo = string.rep("\n", 8) .. logo .. "\n\n"
opts.config.header = vim.split(logo, "\n")
opts.theme = "doom"
opts.config.center = {
{
action = "Telescope find_files",
desc = " Find file",
icon = " ",
key = "f",
},
{
action = "Telescope oldfiles",
desc = " Recent files",
icon = " ",
key = "r",
},
{
action = "Telescope live_grep",
desc = " Find text",
icon = " ",
key = "g",
},
{
action = [[lua require("lazyvim.util").telescope.config_files()()]],
desc = " Config",
icon = " ",
key = "c",
},
{
action = "Neorg workspace notes",
desc = " Neorg notes",
icon = " ",
key = "n",
},
{
action = "Lazy",
desc = " Lazy",
icon = "󰒲 ",
key = "l",
},
{ action = "qa", desc = " Quit", icon = " ", key = "q" },
}
end,
},
}

View File

@ -68,6 +68,7 @@ alias bkp-list='doas restic -r /mnt/nfs/BSD/restic-repo snapshots'
source $HOME/perl5/perlbrew/etc/bashrc
{{- if eq .chezmoi.arch "arm64" }}
export PATH=/opt/homebrew/bin:$PATH
{{ end }}
{{ end }}
{{ end }}
{{- end }}
{{- end }}
{{- end }}
eval "$(atuin init zsh)"