From 9885b038cb5fca1767906a20851db69167b7da8f Mon Sep 17 00:00:00 2001 From: Compey Date: Mon, 22 May 2023 15:23:24 +0530 Subject: [PATCH] dashboard using alpha + tasks.nvim + keybinds --- lua/core/mappings.lua | 8 ++++++ lua/plugins/configs/alpha.lua | 32 +++++++++++++++-------- lua/plugins/init.lua | 48 ++++------------------------------- 3 files changed, 34 insertions(+), 54 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 184a8c1..6717097 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -294,6 +294,14 @@ M.telescope = { }, } +M.tasks = { + plugin = true, + + n = { + ["st"] = { " Telescope tasks specs ", "show available tasks" } + } +} + M.nvterm = { plugin = true, diff --git a/lua/plugins/configs/alpha.lua b/lua/plugins/configs/alpha.lua index 6ddb0c2..30ef02d 100644 --- a/lua/plugins/configs/alpha.lua +++ b/lua/plugins/configs/alpha.lua @@ -44,17 +44,27 @@ local options = { header = { type = "text", val = { - " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", - " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", - " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ", - " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ", - " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ", - " ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ", - " ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ", - " ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ", - " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ", - " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ", - " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ", + -- " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", + -- " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", + -- " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ", + -- " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ", + -- " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ", + -- " ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ", + -- " ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ", + -- " ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ", + -- " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ", + -- " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ", + -- " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ", + -- + "  ", + " ████ ██████ █████ ██ ", + " ███████████ █████  ", + " █████████ ███████████████████ ███ ███████████ ", + " █████████ ███ █████████████ █████ ██████████████ ", + " █████████ ██████████ █████████ █████ █████ ████ █████ ", + " ███████████ ███ ███ █████████ █████ █████ ████ █████ ", + " ██████ █████████████████████ ████ █████ █████ ████ ██████ ", + " ", }, opts = { position = "center", diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index f36815a..d1adfc3 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -88,48 +88,6 @@ local plugins = { end, }, - ["EthanJWright/vs-tasks.nvim"] = { - requires = { - 'nvim-lua/popup.nvim', - 'nvim-lua/plenary.nvim', - 'nvim-telescope/telescope.nvim' - }, - setup = function() - require("vstask").setup({ - cache_json_conf = true, -- don't read the json conf every time a task is ran - cache_strategy = "last", -- can be "most" or "last" (most used / last used) - use_harpoon = true, -- use harpoon to auto cache terminals - telescope_keys = { -- change the telescope bindings used to launch tasks - vertical = '', - split = '', - tab = '', - current = '', - }, - autodetect = { -- auto load scripts - npm = "on" - }, - terminal = 'nvterm', - term_opts = { - vertical = { - direction = "vertical", - size = "80" - }, - horizontal = { - direction = "horizontal", - size = "10" - }, - current = { - direction = "float", - }, - tab = { - direction = 'tab', - } - } - }) - - end, - }, - -- git stuff ["lewis6991/gitsigns.nvim"] = { ft = "gitcommit", @@ -222,7 +180,7 @@ local plugins = { ["goolord/alpha-nvim"] = { after = "base46", - disable = true, + disable = false, config = function() require "plugins.configs.alpha" end, @@ -261,6 +219,10 @@ local plugins = { end, }, + ["GustavoKatel/tasks.nvim"] = { + requires = { "nvim-lua/plenary.nvim" }, + }, + -- Only load whichkey after all the gui ["folke/which-key.nvim"] = { disable = true,