mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-21 03:04:38 +10:00
made neovim config using XDG_BASE_FOLDER specifications
This commit is contained in:
68
.config/nvim/after/plugin/dashboard.rc.lua
Normal file
68
.config/nvim/after/plugin/dashboard.rc.lua
Normal file
@@ -0,0 +1,68 @@
|
||||
-------------------------------------------------
|
||||
-- DT'S NEOVIM CONFIGURATION
|
||||
-- Neovim website: https://neovim.io/
|
||||
-- DT's dotfiles: https://gitlab.com/dwt1/dotfiles
|
||||
-------------------------------------------------
|
||||
|
||||
local status, db = pcall(require, "dashboard")
|
||||
local home = os.getenv("HOME")
|
||||
|
||||
db.default_banner = {
|
||||
"",
|
||||
"",
|
||||
" ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
|
||||
" ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
|
||||
" ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
|
||||
" ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
|
||||
" ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
|
||||
" ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
|
||||
"",
|
||||
" [ TIP: To exit Neovim, just power off your computer. ] ",
|
||||
"",
|
||||
}
|
||||
-- linux
|
||||
--db.preview_command = 'ueberzug'
|
||||
--
|
||||
--db.preview_file_path = home .. '/.config/nvim/static/neovim.cat'
|
||||
db.preview_file_height = 11
|
||||
db.preview_file_width = 70
|
||||
db.custom_center = {
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Recent sessions ",
|
||||
shortcut = "SPC s l",
|
||||
action = "SessionLoad",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Find recent files ",
|
||||
action = "Telescope oldfiles",
|
||||
shortcut = "SPC f r",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Find files ",
|
||||
action = "Telescope find_files find_command=rg,--hidden,--files",
|
||||
shortcut = "SPC f f",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "File browser ",
|
||||
action = "Telescope file_browser",
|
||||
shortcut = "SPC f b",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Find word ",
|
||||
action = "Telescope live_grep",
|
||||
shortcut = "SPC f w",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
desc = "Load new theme ",
|
||||
action = "Telescope colorscheme",
|
||||
shortcut = "SPC h t",
|
||||
},
|
||||
}
|
||||
db.custom_footer = { "", "🎉 If I'm using Neovim, then my Emacs config must be broken!" }
|
||||
db.session_directory = "/home/dt/.config/nvim/session"
|
||||
Reference in New Issue
Block a user