aboutsummaryrefslogtreecommitdiff
path: root/lua/config/dashboard-nvim.lua
diff options
context:
space:
mode:
authorMichal Hanus <hanus.michal@divelit.cz>2024-03-02 18:49:55 +0100
committerMichal Hanus <hanus.michal@divelit.cz>2024-03-02 18:49:55 +0100
commitaab38f32e0a02e43565a554d0a76ff65636499b8 (patch)
treef3f00df05c63228c69a338e80fd0e7d02986e8cf /lua/config/dashboard-nvim.lua
parent99353a355321d68ef4fb3c26291084b23e8f4978 (diff)
crazyshitHEADmaster
Diffstat (limited to 'lua/config/dashboard-nvim.lua')
-rw-r--r--lua/config/dashboard-nvim.lua75
1 files changed, 0 insertions, 75 deletions
diff --git a/lua/config/dashboard-nvim.lua b/lua/config/dashboard-nvim.lua
deleted file mode 100644
index 9017d96..0000000
--- a/lua/config/dashboard-nvim.lua
+++ /dev/null
@@ -1,75 +0,0 @@
-local api = vim.api
-local keymap = vim.keymap
-local dashboard = require("dashboard")
-
-local conf = {}
-conf.header = {
- " ",
- " ",
- " ",
- " ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
- " ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
- " ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
- " ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
- " ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
- " ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
- " ",
- " ",
- " ",
- " ",
-}
-
-conf.center = {
- {
- icon = "󰈞 ",
- desc = "Find File ",
- action = "Leaderf file --popup",
- key = "<Leader> f f",
- },
- {
- icon = "󰈢 ",
- desc = "Recently opened files ",
- action = "Leaderf mru --popup",
- key = "<Leader> f r",
- },
- {
- icon = "󰈬 ",
- desc = "Project grep ",
- action = "Leaderf rg --popup",
- key = "<Leader> f g",
- },
- {
- icon = " ",
- desc = "Open Nvim config ",
- action = "tabnew $MYVIMRC | tcd %:p:h",
- key = "<Leader> e v",
- },
- {
- icon = " ",
- desc = "New file ",
- action = "enew",
- key = "e",
- },
- {
- icon = "󰗼 ",
- desc = "Quit Nvim ",
- -- desc = "Quit Nvim ",
- action = "qa",
- key = "q",
- },
-}
-
-dashboard.setup({
- theme = 'doom',
- shortcut_type = 'number',
- config = conf
-})
-
-api.nvim_create_autocmd("FileType", {
- pattern = "dashboard",
- group = api.nvim_create_augroup("dashboard_enter", { clear = true }),
- callback = function ()
- keymap.set("n", "q", ":qa<CR>", { buffer = true, silent = true })
- keymap.set("n", "e", ":enew<CR>", { buffer = true, silent = true })
- end
-})