Skip to content
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

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

florzanetta
Copy link
Contributor

📃 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:
Screenshot 2024-08-15 at 10 36 18 PM

After change:
Screenshot 2024-08-15 at 10 37 18 PM

Copy link
Owner

@shortcuts shortcuts left a 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!

@@ -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" }
Copy link
Owner

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:

Suggested change
Co.DASHBOARDS = { "dashboard", "alpha", "ministarter" }
Co.DASHBOARDS = { "dashboard", "alpha", "started" }

I wonder why it worked for you 🤔

Copy link
Contributor Author

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,
      },
    },
  },
}

Copy link
Owner

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

@shortcuts shortcuts changed the title Add mini.starter dashboard to constants feat: add mini.starter dashboard to constants Aug 29, 2024
Copy link
Owner

@shortcuts shortcuts left a 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!!

@shortcuts shortcuts enabled auto-merge (squash) August 29, 2024 22:32
@shortcuts shortcuts merged commit d8168ac into shortcuts:main Aug 29, 2024
8 checks passed
shortcuts pushed a commit that referenced this pull request Aug 29, 2024
🤖 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants