Skip to content

fix: guess-indent plugin not working #1621

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

Closed
wants to merge 1 commit into from

Conversation

gartmeier
Copy link

@gartmeier gartmeier commented Jun 30, 2025

The guess-indent plugin wasn't doing anything after cloning kickstart.nvim - no auto-detection and the :GuessIndent command didn't exist.

Turns out the plugin needs opts = {} in the lazy config to actually run its setup function. Without it, lazy doesn't bother calling setup, so you get nothing.

Simple fix:

{ 'NMAC427/guess-indent.nvim', opts = {} }, -- Detect tabstop and shiftwidth automatically

Now it actually works like it should.

The plugin requires opts to be defined to run its setup function which
creates the :GuessIndent command and autocommands.
@gartmeier gartmeier changed the title fix: add empty opts to guess-indent plugin to ensure setup() is called fix: guess-indent plugin not working Jun 30, 2025
@gartmeier
Copy link
Author

Sorry, just noticed there are already existing PRs for this same issue: #1532 and #1598.

Closing this one. Thanks for maintaining the project!

@gartmeier gartmeier closed this Jun 30, 2025
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.

1 participant