godotengine / godotengine/emacs-gdscript-mode

The editorconfig settings are overridden

Open
#48 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
401
Forks
42
Avg merge
23h 23m
Merged PRs (30d)
1

Description

**I'm submitting a...**

- [x] Bug report.
- [ ] Feature request.

## Bug report ##

I have the `editorconfig` package enabled and an .editorconfig file:
```
root = true

[*]
indent_size = 2
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2
```
I'm using Doom Emacs :)

**What is the current behavior?**
When editing a gdscript file indenting from the NORMAL mode with `Shift+>+>` works correctly but from the INSERT mode if I press tab the indent size used is 4.

_If I change the indent size to 2 with `gdscript-indent-offset` it works as expected_

**What is the expected behavior?**
Let the `editorconfig` preference overrides the indent size configured for `gdscript-mode`

**Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.**

1. Enable the `editoconfig` package
2. Create an `.editorconfig` file like the one above (or with different indent size between editor config and gdscript-mode)
3. Try to indent a line

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.