mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
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:
parent
61ea466591
commit
c146580e9d
@ -586,6 +586,17 @@ any #lang directive overrides, use the following command: >
|
||||
let g:freebasic_lang = "fblite"
|
||||
|
||||
|
||||
GDSCRIPT *ft-gdscript-plugin*
|
||||
|
||||
By default the following options are set, based on Godot official docs: >
|
||||
|
||||
setlocal noexpandtab softtabstop=0 shiftwidth=0
|
||||
|
||||
To disable this behavior, set the following variable in your vimrc: >
|
||||
|
||||
let g:gdscript_recommended_style = 0
|
||||
|
||||
|
||||
GIT COMMIT *ft-gitcommit-plugin*
|
||||
|
||||
One command, :DiffGitCached, is provided to show a diff of the current commit
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user