From bdee9169cf579f179cdd9cb30696449c0aa6d6f8 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 20 Jan 2024 18:36:48 +0100 Subject: [PATCH] dashboard yay --- lua/custom/chadrc.lua | 47 +++++++++++++++++++++++++++++++++++++++-- lua/custom/mappings.lua | 2 +- lua/custom/plugins.lua | 5 ++--- 3 files changed, 48 insertions(+), 6 deletions(-) diff --git a/lua/custom/chadrc.lua b/lua/custom/chadrc.lua index f22338e..ecfc215 100644 --- a/lua/custom/chadrc.lua +++ b/lua/custom/chadrc.lua @@ -5,11 +5,54 @@ local M = {} local highlights = require "custom.highlights" M.ui = { - theme = "kanagawa", - theme_toggle = { "kanagawa", "one_light" }, + theme = "chadracula", + theme_toggle = { "kanagawa", "chadracula" }, hl_override = highlights.override, hl_add = highlights.add, + lsp_semantic_tokens = true, + statusline = { + theme = "default", -- default/vscode/vscode_colored/minimal + -- default/round/block/arrow separators work only for default statusline theme + -- round and block will work for minimal theme only + separator_style = "default", + overriden_modules = nil, + }, + -- lazyload it when there are 1+ buffers + tabufline = { + show_numbers = true, + enabled = true, + lazyload = true, + overriden_modules = nil, + }, + -- nvdash (dashboard) + nvdash = { + load_on_startup = true, + header = { + " ", + " █ ████████ █████ ███████ ████ ", + " ███ ██████ █████ █████████ ██████ ", + " █████ ██████████████████████ ████ ███████████████ ", + " ██ ██ █████ █████████████ ████ ████████████████ ", + " ████ ███████████████ █████████ ████ █████ ██████ ████ ", + " ██████ ██████ ███ █████████ ████ █████ █████ ████ ", + "████████ ███████████████████ ████ ████ █████ ████ ████", + " ", + " 🛠️ Sharp tools make good work 🖥️ ", + }, + + buttons = { + { " Find File", ";ff", "Telescope find_files" }, + { "󰈚 Recent Files", ";fo", "Telescope oldfiles" }, + { "󰈭 Find Word", ";fw", "Telescope live_grep" }, + { " Bookmarks", ";fm", "Telescope marks" }, + { " Themes", ";th", "Telescope themes" }, + { " Mappings", "ch", "NvCheatsheet" }, + { " Git", "gg", "LazyGit" }, + { " Files", "", "NvimTreeToggle" }, + { " Terminal", "", "ToggleTerm direction=float" }, + }, + }, } M.plugins = "custom.plugins" diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index 204af95..7060cca 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -25,13 +25,13 @@ M.disabled = { ["fa"] = "", ["fw"] = "", ["fb"] = "", + ["th"] = "", ["fh"] = "", ["fo"] = "", ["fz"] = "", ["cm"] = "", ["gt"] = "", ["pt"] = "", - ["th"] = "", ["ma"] = "", ["v"] = "", ["rh"] = "", diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 8547376..76f4e9d 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -5,7 +5,7 @@ local function get_header() return { -- The following is a customized version! [[ ]], - [[ ]], + [[ ]], [[ █ ████████ █████ ███████ ████ ]], [[ ███ ██████ █████ █████████ ██████ ]], [[ █████ ██████████████████████ ████ ███████████████ ]], @@ -347,6 +347,7 @@ local plugins = { }, { "goolord/alpha-nvim", + enabled = false, lazy = false, dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() @@ -568,14 +569,12 @@ local plugins = { local nls = require "null-ls" local builtins = nls.builtins local sources = { - builtins.formatting.stylua, builtins.formatting.black, builtins.formatting.fixjson, builtins.formatting.golines, builtins.formatting.markdownlint, builtins.formatting.shellharden, builtins.formatting.sql_formatter, - builtins.formatting.taplo, builtins.diagnostics.markdownlint, builtins.diagnostics.mypy, builtins.diagnostics.vint,