dashboard using alpha + tasks.nvim + keybinds

This commit is contained in:
Erica Marigold 2023-05-22 15:23:24 +05:30
parent f2ac9f069d
commit 9885b038cb
No known key found for this signature in database
GPG key ID: DA2C44572707FB1C
3 changed files with 34 additions and 54 deletions

View file

@ -294,6 +294,14 @@ M.telescope = {
},
}
M.tasks = {
plugin = true,
n = {
["<leader>st"] = { "<cmd> Telescope tasks specs <CR>", "show available tasks" }
}
}
M.nvterm = {
plugin = true,

View file

@ -44,17 +44,27 @@ local options = {
header = {
type = "text",
val = {
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
" ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
" ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
-- " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
-- " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
-- " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
-- " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
-- " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
-- " ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
-- " ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
-- " ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
-- " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
-- " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
-- " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
--
"  ",
" ████ ██████ █████ ██ ",
" ███████████ █████  ",
" █████████ ███████████████████ ███ ███████████ ",
" █████████ ███ █████████████ █████ ██████████████ ",
" █████████ ██████████ █████████ █████ █████ ████ █████ ",
" ███████████ ███ ███ █████████ █████ █████ ████ █████ ",
" ██████ █████████████████████ ████ █████ █████ ████ ██████ ",
" ",
},
opts = {
position = "center",

View file

@ -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 = '<C-v>',
split = '<C-p>',
tab = '<C-t>',
current = '<CR>',
},
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,