commit ba999ffc08406afc344f0d5f4962e86dddece546
parent b9df43e4c45a8f93010aa4139b695fb85a6f3508
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date: Sat, 23 Aug 2025 17:07:25 -0300
make micro use just editorconfig to handle config
Diffstat:
2 files changed, 22 insertions(+), 56 deletions(-)
diff --git a/.editorconfig b/.editorconfig
@@ -0,0 +1,21 @@
+root = true
+
+[{*.{c,cpp,json,jsonc,py,zig},SConstruct}]
+indent_style = space
+indent_size = 4
+
+[*.go]
+indent_style = tab
+indent_size = 4
+
+[*.odin]
+indent_style = tab
+indent_size = 8
+
+[*.{erl,ex,exs,hs,lua,yaml}]
+indent_style = space
+indent_size = 2
+
+[{*.mk,Makefile,makefile}]
+indent_style = tab
+indent_size = 8
diff --git a/micro/settings.json b/micro/settings.json
@@ -1,65 +1,10 @@
{
- "*.[ex,exs]": {
- "tabsize": 2,
- "tabstospaces": true
- },
- "*.c": {
- "commenttype": "/* %s */",
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.cpp": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.erl": {
- "tabsize": 2,
- "tabstospaces": true
- },
- "*.go": {
- "tabsize": 4
- },
- "*.hs": {
- "tabsize": 2,
- "tabstospaces": true
- },
- "*.json": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.jsonc": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.kdl": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.lua": {
- "tabsize": 2,
- "tabstospaces": true
- },
- "*.py": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "*.yaml": {
- "tabsize": 2,
- "tabstospaces": true
- },
- "*.zig": {
- "tabsize": 4,
- "tabstospaces": true
- },
- "SConstruct": {
- "tabsize": 4,
- "tabstospaces": true
- },
"autosu": true,
"colorcolumn": 80,
"colorscheme": "simple",
"cursorline": false,
"diffgutter": true,
+ "ftoptions": false,
"helpsplit": "vsplit",
"hlsearch": true,
"hltaberrors": true,