vim-patch:6a54dcb: runtime(gdscript): add recommended indent options to ftplugin

related: vim/vim#15264

6a54dcbbd6

Co-authored-by: markmacode <code@mamo.aleeas.com>
This commit is contained in:
Christian Clason
2024-07-16 22:26:43 +02:00
parent 61ea466591
commit c146580e9d
2 changed files with 16 additions and 0 deletions

View File

@@ -25,6 +25,11 @@ setlocal commentstring=#\ %s
setlocal foldignore=
setlocal foldexpr=s:GDScriptFoldLevel()
if get(g:, 'gdscript_recommended_style', 1)
setlocal noexpandtab tabstop=4 softtabstop=0 shiftwidth=0
let b:undo_ftplugin ..= ' | setlocal expandtab< tabstop< softtabstop< shiftwidth<'
endif
function s:GDScriptFoldLevel() abort
let line = getline(v:lnum)