Skip to content

Conversation

@khaneliman
Copy link
Contributor

@khaneliman khaneliman commented Aug 12, 2024

Resolves #1890

Also added support:

  • separator_style for the custom separator declaration using an array of 2 strings.
  • indicator.style allow for none

Changed:

  • diagnostics no longer accepts true. Plugin only accepts false, nvim_lsp, or coc.
  • diagnosticsUpdateInInsert uses vim.diagnostic.config instead of passing into options table.
  • Updated some descriptions with notes from upstream docs on usage.

@khaneliman khaneliman force-pushed the bufferline branch 9 times, most recently from 74b2003 to 98fdeef Compare August 13, 2024 03:58
@khaneliman khaneliman marked this pull request as ready for review August 13, 2024 03:58
@khaneliman khaneliman force-pushed the bufferline branch 7 times, most recently from 3dfb335 to f6ac618 Compare August 13, 2024 04:53
@khaneliman
Copy link
Contributor Author

@GaetanLepage I see you touched this a bit before, so would also like your eyes.

@GaetanLepage
Copy link
Member

I will have a look later today, thanks !

@khaneliman khaneliman force-pushed the bufferline branch 4 times, most recently from 877898c to 0a8e088 Compare August 13, 2024 14:24
@khaneliman khaneliman force-pushed the bufferline branch 2 times, most recently from 5aaff84 to 968a435 Compare August 13, 2024 16:40
Copy link
Member

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is mostly done, last few suggestions and questions!

@khaneliman khaneliman force-pushed the bufferline branch 2 times, most recently from f00283e to 50ff5ed Compare August 13, 2024 22:29
Copy link
Member

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy, thanks for your work on this!

Two more nits below, but they're not too important.

@mergify
Copy link
Contributor

mergify bot commented Aug 14, 2024

queue

❌ Command disallowed due to command restrictions in the Mergify configuration.

  • sender-permission>=write

Copy link
Member

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks !

@GaetanLepage
Copy link
Member

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Aug 14, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at cb398ce

Allows us to require a list to have a certain length for plugins that
request it.
Extracted the `optionsRenamedToSettings` implementation
from`mkVimPlugin` and `mkNeovimPlugin` into a new public helper.
Also resolves nix-community#1890 by
automatically setting up `diagnostics.update_in_insert` for the user.
@mergify mergify bot merged commit cb398ce into nix-community:main Aug 14, 2024
@mergify mergify bot temporarily deployed to github-pages August 14, 2024 11:30 Inactive
@khaneliman khaneliman deleted the bufferline branch August 14, 2024 13:06
@ajaxbits
Copy link

Seeing this bug:

┏━ 1 Errors:
 ⋮
┃            39|       paths = [
┃              |       ^
┃            40|         config.finalPackage
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: attribute 'nixvim' missing
┃        at /nix/store/vdwmiyrhb8as39shk5hgqlb5p1g7ra21-source/plugins/bufferlines/bufferline.nix:11:1:
┃            10| in
┃            11| lib.nixvim.neovim-plugin.mkNeovimPlugin config {
┃              | ^
┃            12|   name = "bufferline";
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 13:28:01 after 1s

@khaneliman
Copy link
Contributor Author

khaneliman commented Aug 15, 2024

Seeing this bug:

┏━ 1 Errors:
 ⋮
┃            39|       paths = [
┃              |       ^
┃            40|         config.finalPackage
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: attribute 'nixvim' missing
┃        at /nix/store/vdwmiyrhb8as39shk5hgqlb5p1g7ra21-source/plugins/bufferlines/bufferline.nix:11:1:
┃            10| in
┃            11| lib.nixvim.neovim-plugin.mkNeovimPlugin config {
┃              | ^
┃            12|   name = "bufferline";
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 13:28:01 after 1s

Confusing to say the least... it built and tested fine and I'm using the config myself..

@ajaxbits
Copy link

ajaxbits commented Aug 15, 2024

Here's the code I'm working with: https://github.com/ajaxbits/nvim/tree/ef8eb6410366e7aed4189cb407585e75b7756434

Gonna keep debugging, but feel free to give it a look if you want.

@MattSturgeon
Copy link
Member

@ajaxbits you override the lib we use here: https://github.com/ajaxbits/nvim/blob/ef8eb6410366e7aed4189cb407585e75b7756434/flake.nix#L34

Which isn't supported because it means our "extended" lib isn't used.

Can you open an issue explaining why you want to do that and I'll try and come up with something 🤔

@ajaxbits
Copy link

Ah thank you for the explainer. I don't know why that was set. Weirdly, it was working for me all this time until recently. Who knows what that's all about. Removing that SpecialArg fixed my issue. Thank you for your time, and sorry for the false report!

@MattSturgeon
Copy link
Member

I don't know why that was set. Weirdly, it was working for me all this time until recently. Who knows what that's all about.

Using an extended lib in our modules is a pretty new change: #1963

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.

[BUG] Bufferline diagnostics_update_in_insert is deprecated

4 participants