fix: ensure correct logo path assignment in dashboard configuration
This commit is contained in:
@@ -89,7 +89,7 @@ vim.g.dashboard = "alpha" ---@type string Options: [dashboard]
|
|||||||
-- ╰───────────────────────────╯
|
-- ╰───────────────────────────╯
|
||||||
|
|
||||||
-- Dashboard logo file
|
-- Dashboard logo file
|
||||||
vim.g.dash_logo = "logo/neovim.txt" ---@type string Options: [dash logo]
|
vim.g.dash_logo = "neovim.txt" ---@type string Options: [dash logo]
|
||||||
-- Dashboard header color
|
-- Dashboard header color
|
||||||
vim.g.DashboardHeaderColor = "#88fc9a"---@type string Options: [hex color]
|
vim.g.DashboardHeaderColor = "#88fc9a"---@type string Options: [hex color]
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -7,7 +7,11 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
-- Define default path to the logo art
|
-- Define default path to the logo art
|
||||||
M.logo = vim.g.dash_logo or "logo/neovim.txt"
|
local logofile = vim.fn.stdpath("config") .. "/logo/" .. "neovim.txt"
|
||||||
|
if vim.g.dash_logo then
|
||||||
|
logofile = vim.fn.stdpath("config") .. "/logo/" .. vim.g.dash_logo
|
||||||
|
end
|
||||||
|
M.logo = logofile
|
||||||
|
|
||||||
--- Alpha plugin configuration
|
--- Alpha plugin configuration
|
||||||
M.alpha = {
|
M.alpha = {
|
||||||
|
|||||||
Reference in New Issue
Block a user