From 2fabc35f35bd63c447c29f5753784588017a9947 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Fri, 23 Feb 2024 09:46:44 +0100 Subject: [PATCH] Update nvim dashboard. Add atuin. --- dot_config/nvim/lua/config/lazy.lua | 2 +- dot_config/nvim/lua/plugins/ui.lua.tmpl | 57 +++++++++++++++++++++++++ dot_zshrc.tmpl | 7 +-- 3 files changed, 62 insertions(+), 4 deletions(-) diff --git a/dot_config/nvim/lua/config/lazy.lua b/dot_config/nvim/lua/config/lazy.lua index 85fd100..efe15cd 100644 --- a/dot_config/nvim/lua/config/lazy.lua +++ b/dot_config/nvim/lua/config/lazy.lua @@ -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 diff --git a/dot_config/nvim/lua/plugins/ui.lua.tmpl b/dot_config/nvim/lua/plugins/ui.lua.tmpl index 8afa639..d4e6bff 100644 --- a/dot_config/nvim/lua/plugins/ui.lua.tmpl +++ b/dot_config/nvim/lua/plugins/ui.lua.tmpl @@ -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, + }, } diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 97ba7c1..451228a 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -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)"