]> git.wincent.com - wincent.git/commit
feat(vim): add WIP of .editorconfig support
authorGreg Hurrell <greg@hurrell.net>
Fri, 3 Apr 2020 23:56:54 +0000 (01:56 +0200)
committerGreg Hurrell <greg@hurrell.net>
Fri, 3 Apr 2020 23:59:53 +0000 (01:59 +0200)
commit001f909945dfca1f0c9606cec92c31a0cb333d3d
treec24038751baf8aad914aaf3cca3fd653e449d09c
parent16d2d5bbbe16c2952e1f20f42dbc979c4f4aba61
feat(vim): add WIP of .editorconfig support

It works for the simple case shown here, which is changing the tabWidth
to 4 spaces (up from 2) in Markdown, JSON, JS, and TS files.

I prefer to do this minimally and locally without pulling in a large
editorconfig plugin like:

- https://github.com/editorconfig/editorconfig-vim
- https://github.com/sgur/vim-editorconfig

because I want to integrate it with my existing Liferay-specific stuff.

Plenty of unimplemented features though, and I don't intend to reach
feature parity with those plugins, so I might end up having to implement
an "escape hatch" here to blacklist folders when things don't play
nicely. Will cross that bridge when we come to it.
78 files changed:
.editorconfig [new file with mode: 0644]
.prettierrc
CHANGELOG.md
README.md
aspects/launchd/aspect.json
aspects/launchd/index.ts
aspects/terminfo/aspect.json
aspects/terminfo/index.ts
package.json
profiles/defaults.json
profiles/personal.json
profiles/work.json
project.json
roles/automator/files/Open\ in\ Vim.js
roles/dotfiles/files/.clipper.json
roles/dotfiles/files/.vim/autoload/wincent/autocmds.vim
roles/dotfiles/files/.zsh/liferay/bin/portool
roles/dotfiles/support/karabiner-test.js
roles/dotfiles/support/karabiner.js
roles/iterm/files/DynamicProfiles/00-Base.json
roles/iterm/files/DynamicProfiles/30-Mutt-Base.json
roles/iterm/files/DynamicProfiles/60-Vim-Base.json
roles/iterm/files/Sources/10-4K.json
roles/iterm/files/Sources/10-Retina.json
roles/iterm/files/Sources/40-Mutt-4K.json
roles/iterm/files/Sources/40-Mutt-Retina.json
roles/iterm/files/Sources/70-Vim-4K.json
roles/iterm/files/Sources/70-Vim-Retina.json
src/Attributes.ts
src/Compiler.ts
src/ErrorWithMetadata.ts
src/Fig/Context.ts
src/Fig/TaskRegistry.ts
src/Fig/__tests__/compare-test.ts
src/Fig/compare.ts
src/Fig/globToRegExp.ts
src/Fig/index.ts
src/Fig/operations/command.ts
src/Fig/operations/file.ts
src/Fig/operations/template.ts
src/Fig/resource.ts
src/Fig/root.ts
src/Fig/status.ts
src/Fig/task.ts
src/Fig/variable.ts
src/__tests__/merge-test.ts
src/__tests__/regExpFromString-test.ts
src/__tests__/stringify-test.ts
src/__tests__/template-test.ts
src/assert.ts
src/chown.ts
src/console/COLORS.ts
src/console/index.ts
src/dedent.ts
src/escapeRegExpPattern.ts
src/expand.ts
src/getCaller.ts
src/getOptions.ts
src/main.ts
src/merge.ts
src/prompt.ts
src/readAspect.ts
src/readProject.ts
src/regExpFromString.ts
src/run.ts
src/simplify.ts
src/spawn.ts
src/stat.ts
src/stringify.ts
src/tempfile.ts
src/template.ts
src/test/harness.ts
src/test/index.ts
src/types.d.ts
support/typegen/Builder.js
support/typegen/SCHEMAS.js
support/typegen/index.js
tsconfig.json