diff --git a/init.vim b/init.vim index e900f23..5594ca8 100644 --- a/init.vim +++ b/init.vim @@ -151,12 +151,17 @@ let g:SuperTabDefaultCompletionType = "" nnoremap g :LazyGit let g:lazygit_floating_window_corner_chars = ['╭', '╮', '╰', '╯'] " to use folding provided by vim-godot -setlocal foldmethod=expr -setlocal tabstop=4 -nnoremap :GodotRunLast -nnoremap :GodotRun -nnoremap :GodotRunCurrent -nnoremap :GodotRunFZF +func! GodotSettings() abort + setlocal foldmethod=expr + setlocal tabstop=4 + nnoremap :GodotRunLast + nnoremap :GodotRun + nnoremap :GodotRunCurrent + nnoremap :GodotRunFZF +endfunction +augroup godot | au! + au FileType gdscript call GodotSettings() +augroup end let g:coc_global_extensions = ['coc-sh', 'coc-git', 'coc-java'] " Allow ALE to autoimport completion entries from LSP servers