diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-11-27 21:10:47 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-30 01:19:10 +0200 |
| commit | 80bdc71c0ed44f63e0f2f45f8e264e2022cc6658 (patch) | |
| tree | 8f0153eefd9eaae7841bad486c82b8fbce500b15 /data/syntax-highlighting/vim/README | |
| parent | 0c23e6545711802be279566946983310ca11c1d8 (diff) | |
| download | meson-80bdc71c0ed44f63e0f2f45f8e264e2022cc6658.tar.gz | |
syntax-highlighting: vim: Allow overriding shiftwidth and softtabstop
The vim syntax indentation rules stored in indent/meson.vim set the
local shiftwidth and softtabstop variables. As the file is loaded last,
after ~/.vim/after/ftplugin/meson.vim (when present), this prevents
overriding the default values for shiftwidth and softtabstop in a local
configuration.
Fix this by setting shiftwidth and softtabstop in ftplugin/meson.vim
instead (as done by the python indentiation rules in upstream vim for
instance) to allow local overrides.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'data/syntax-highlighting/vim/README')
| -rw-r--r-- | data/syntax-highlighting/vim/README | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/syntax-highlighting/vim/README b/data/syntax-highlighting/vim/README index 1afa243e1..95188fcc7 100644 --- a/data/syntax-highlighting/vim/README +++ b/data/syntax-highlighting/vim/README @@ -1,3 +1,4 @@ ftdetect sets the filetype +ftplugin sets Meson indentation rules +indent does Meson indentation syntax does Meson syntax highlighting -plugin does Meson indentation |
