editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.14k stars 138 forks source link

editorconfig ignores patterns #118

Closed crvcrv closed 5 years ago

crvcrv commented 5 years ago

editorconfig-vim seems to be ignoring the [*.go] directives.
With the following vimrc and editorconfig my go files only get indeted by 2 spaces.
It seems to be ignoring anything apart from the [*] directive

.vimrc

filetype indent plugin on
call plug#begin('~/.vim/plugged')"
Plug 'editorconfig/editorconfig-vim'
call plug#end()

.editorconfig

# http://editorconfig.org/

root = true

###########################################################
; common
###########################################################

[*]
charset = utf-8
end_of_line = LF
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.go]
indent_style = tab
ident_size = 8
xuhdev commented 5 years ago

You have a typo ident_size

crvcrv commented 5 years ago

holy fuck I can't believe I've spent 2 hours trying to debug this. FML thanks a bunch and sorry for my idiocy