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

Tabs are gigantic when expanding context #9

Closed
Axlefublr opened this issue Aug 8, 2024 · 11 comments
Closed

Tabs are gigantic when expanding context #9

Axlefublr opened this issue Aug 8, 2024 · 11 comments

Comments

@Axlefublr
Copy link

From the qflist, when I expand context to view my code, shiftwidth is set to some ridiculous value, for example 23 and 27.
I assume it's because they are used internally by this plugin for some sort of aligning, but since I use tabs for indenting my code, this ends up looking ridiculous.
image

@Axlefublr
Copy link
Author

I tried setting shiftwidth in the opts table of opts, but it doesn't work. Probably because opts.opts is for window specific options, and shiftwidth is buffer-local?

@Axlefublr
Copy link
Author

And while I'm here: thank you SO MUCH for this plugin, I absolutely love it!
I love the qflist, but the default view is just lowkey unusable, so I used other ways to work with it.
Thanks to this plugin, I can finally interact with it a bit richer, which I massively appreciate!

@Axlefublr
Copy link
Author

I also massively appreciate that you added the lazydev.nvim type to the suggested installation with lazy; having to go through source code to find that type (which I often do) to get suggestions is kinda annoying, so presenting it front and center like that is really thoughtful :3

@Axlefublr
Copy link
Author

I should maybe open another issue for this, and please tell me if I should, but here's another array of errors, when I tried doing :vim ;feedkeys_int; **, to search in every file in cwd:
image

@Axlefublr
Copy link
Author

it does end up working, fwiw, just throws a bunch of errors. Seems similar to #8 in that it's throwing errors unnecessarily

@stevearc
Copy link
Owner

stevearc commented Aug 8, 2024

Whoah, that's crazy. I'm not doing anything with shiftwidth in this plugin, so I suspect it's coming from somewhere else. Could you try starting Neovim in verbose mode with nvim -V1, perform the actions to get to the weird quickfix, and then run :verbose set shiftwidth?

This should show us exactly where the shiftwidth was last set.

FWIW the opts table should transparently handle both buffer and window options. It's possible there's a bug, but the intent at least is for it to work.

@stevearc stevearc added the question Further information is requested label Aug 8, 2024
@Axlefublr
Copy link
Author

Thank you! Using -V1 helped figure out the issue, and I feel like it's not going to be your responsibility to fix it (I'll look into it later)
So the way I got to it:

  1. open some file
  2. :vim ;pattern; % where pattern is on a line indented with tabs
  3. open qflist through the plugin
  4. expand
  5. collapse
    Blammo, tabs are ginormous
    From :verbose set shiftwidth? I realized that it's guess-indent guessindenting where it's not supposed to:
:verbose set shiftwidth?
  shiftwidth=15
        Last set from ~/.local/share/nvim/lazy/guess-indent.nvim/lua/guess-indent/init.lua line 101

@github-actions github-actions bot removed the question Further information is requested label Aug 8, 2024
@Axlefublr
Copy link
Author

yes, fixing the autocmd fixes the issue, both of them, even.

however, a billion notifications saying "lsp with id 1 is not attached" still show up, so now I'm wishing to learn how to remove those, I imagine it is this-plugin-specific

@stevearc
Copy link
Owner

stevearc commented Aug 9, 2024

I actually don't know where those notifications are coming from. I grepped the Neovim source for that message and didn't find anything. Actually, searching all of github didn't turn up a match.

@stevearc stevearc added the question Further information is requested label Aug 9, 2024
@Axlefublr
Copy link
Author

LSP Client with id 1 not attached to buffer 174, more specifically, sorry. And the 174 number changes for every notification

@github-actions github-actions bot removed the question Further information is requested label Aug 10, 2024
@Axlefublr
Copy link
Author

Not sure why I haven't tried this before, but I disabled the quicker plugin and the lsp errors still happened. So, not this plugin's responsibility

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

No branches or pull requests

2 participants