Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ppebb/ppebboard
Neovim dashboard plugin
https://github.com/ppebb/ppebboard
dashboard neovim neovim-plugin vim vim-plugin
Last synced: about 1 month ago
JSON representation
Neovim dashboard plugin
- Host: GitHub
- URL: https://github.com/ppebb/ppebboard
- Owner: ppebb
- License: gpl-2.0
- Created: 2023-02-01T00:29:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T09:04:14.000Z (11 months ago)
- Last Synced: 2024-04-24T11:19:12.927Z (8 months ago)
- Topics: dashboard, neovim, neovim-plugin, vim, vim-plugin
- Language: Lua
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ppebboard
Small lua plugin to create a dashboard on launch. Clone of [dashboard-nvim](https://github.com/glepnir/dashboard-nvim), because it broke my config one too many times...
## Setup/Configuration
Installation with packer -
```lua
use({
"pollen00/ppebboard",
config = function() require("ppebboard").setup(your_config) end,
})
```Configuration is straightforward, with the available options being -
```lua
require("ppebboard").setup({
header = {
lines = {
[[ ____ _ _ _ ]],
[[| _ \ _ __ ___| |__ | |__ ___ __ _ _ __ __| |]],
[[| |_) | '_ \ / _ \ '_ \| '_ \ / _ \ / _` | '__/ _` |]],
[[| __/| |_) | __/ |_) | |_) | (_) | (_| | | | (_| |]],
[[|_| | .__/ \___|_.__/|_.__/ \___/ \__,_|_| \__,_|]],
[[ |_|]],
},
highlight = "PpebboardHeader", -- Optional highlight group to apply to the header. Can be set to DashboardHeader if your colorscheme supports dashboard-nvim
},
center = {
items = {
{
icon = " ",
text = "Recently opened files ", -- Can have an item containing only text, in the event you want no icon, shortcut, or action
shortcut = "f h", -- Will be used for the actual hotkey, with the spaces removed
action = "Telescope oldfiles", -- Can be a vim command, in which case the string will be wrapped with : and , or a lua function
icon_highlight = "PpebboardIcon", -- Highlights can be set per item. All optional
text_highlight = "PpebboardText",
shortcut_highlight = "PpebboardShortcut",
},
-- Add as many as you want
},
icon_highlight = "PpebboardIcon", -- These options will highlight every item, unless set inside of the item. All optional
text_highlight = "PpebboardText", -- Can be set to DashboardCenter if your colorscheme supports dashboard-nvim
shortcut_highlight = "PpebboardShortcut", -- Can be set to DashboardShortCut if your colorscheme supports dashboard-nvim
spacing = true, -- Should each item have an empty line between them
},
footer = {
lines = {
"",
"",
"Neovim loaded " .. #vim.tbl.keys(packer_plugins) .. " plugins" -- Plugin count example for packer
},
highlight = "PpebbaordFooter" -- Optional highlight group to apply to the footer. Can be set to Dashboardfooter if your colorscheme supports dashboard-nvim
},
})
```For examples of possible center items, see [my config](https://github.com/pollen00/nvim-conf/blob/main/lua/ppebboard-config.lua#L52)
If you use [indent-blankline](https://github.com/lukas-reineke/indent-blankline.nvim), add "ppebboard" to filetype_exclude in indent-blankline's setup. [Example](https://github.com/pollen00/nvim-conf/blob/main/lua/indent-blankline-config.lua#L13).
If you use [vim-better-whitespace](https://github.com/ntpeters/vim-better-whitespace), add `vim.g.better_whitespace_filetypes_blacklist = { "ppebboard" }
` to your init.lua.## Feature Requests
I'm open to adding features to this plugin. Make an issue describing your request, or message me at ppeb#4062 on Discord, or @ppeb:matrix.org on matrix.