diff options
Diffstat (limited to '')
-rw-r--r-- | runtime/ftplugin/gdscript.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/ftplugin/gdscript.vim b/runtime/ftplugin/gdscript.vim index 93519d8..d1f41c8 100644 --- a/runtime/ftplugin/gdscript.vim +++ b/runtime/ftplugin/gdscript.vim @@ -4,6 +4,7 @@ vim9script # Language: gdscript (Godot game engine scripting language) # Maintainer: Maxim Kim <habamax@gmail.com> # Website: https://github.com/habamax/vim-gdscript +# Last Change: 2024 Jul 14 if exists("b:did_ftplugin") | finish | endif @@ -22,6 +23,11 @@ setlocal commentstring=#\ %s setlocal foldignore= setlocal foldexpr=GDScriptFoldLevel() +if get(g:, 'gdscript_recommended_style', 1) + setlocal noexpandtab tabstop=4 softtabstop=0 shiftwidth=0 + b:undo_ftplugin ..= ' | setlocal expandtab< tabstop< softtabstop< shiftwidth<' +endif + def GDScriptFoldLevel(): string var line = getline(v:lnum) |