Skip to content

bug: Tab gets used for indentation for code actions #346

Open

Description

@Jaffex

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.3

Operating system/version

Fedora 41

Describe the bug

When code gets added by a code action (for example creating a non existing method), the code generated does not follow the indentation style configured within neovim and adds a tabulator as indentation.

Steps To Reproduce

  1. Try to use a method that does not exist yet
  2. Use the code action to create the method
  3. Look at the generated code, it's indented with tabs.

Expected Behavior

I would expect the code action's format to follow the indentation configured in neovim (in my case, 4 spaces) for indentations.

Activity

  1. snoweuph commented on May 5, 2025

    @snoweuph

    and it should prolly read the .editorconfig file of a project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions