-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add mini.starter dashboard to constants #377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a ton for the contribution and for using the plugin!!!
I need to finish #375 before going ahead with your PR, because lots of tests are failing due to upstream breaking changes :( I'll follow ASAP!
lua/no-neck-pain/util/constants.lua
Outdated
@@ -82,6 +82,6 @@ Co.INTEGRATIONS = { | |||
---Dashboards filetypes that delays the plugin enable step until next buffer entered. | |||
--- | |||
---@private | |||
Co.DASHBOARDS = { "dashboard", "alpha" } | |||
Co.DASHBOARDS = { "dashboard", "alpha", "ministarter" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this requires the filetype, it should be:
Co.DASHBOARDS = { "dashboard", "alpha", "ministarter" } | |
Co.DASHBOARDS = { "dashboard", "alpha", "started" } |
I wonder why it worked for you 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird... when I try started
instead of ministarter
it breaks for me.
What I did was start nvim without files so I'm in the dashboard and ran :set ft?
to see what ft was set, this returned ministarter
so that's why I set it to that.
Here are the relevant portions of my config:
require("lazy").setup({
{
"echasnovski/mini.nvim",
config = function()
local starter = require("mini.starter")
local nvim_header = [[ ... ]]
starter.setup({
header = nvim_header,
})
},
-- (...)
{
"florzanetta/no-neck-pain.nvim",
lazy = false,
priority = 1000,
version = "*",
opts = {
-- debug = true,
width = 160,
autocmds = {
enableOnVimEnter = true,
},
},
},
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I just realized I did a typo, it should be starter
not started
, and since we do a partial match on the ft, it would cover both ministarter and starter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks again for contributing and using the plugin!!
🤖 I have created a release *beep* *boop* --- ## [1.16.0](v1.15.0...v1.16.0) (2024-08-29) ### Features * add mini.starter dashboard to constants ([#377](#377)) ([d8168ac](d8168ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
📃 Summary
I use mini.starter as a dashboard and I enjoy your plugin very much. This fixes the integration between them.
Thanks for reviewing!
📸 Preview
Before change:
After change: