| so ~/.vim/cs.vim | so ~/.vim/cs.vim | ||||
| " -- DONE | " -- DONE | ||||
| " Setting up some Godot Engine bindings... | |||||
| so ~/.vim/godot.vim | |||||
| if exists('$SHELL') | if exists('$SHELL') | ||||
| set shell=$SHELL | set shell=$SHELL | ||||
| else | else |
| func! GodotSettings() abort | |||||
| setlocal foldmethod=expr | |||||
| setlocal tabstop=4 | |||||
| nnoremap <buffer> <F4> :GodotRunLast<CR> | |||||
| nnoremap <buffer> <F5> :GodotRun<CR> | |||||
| nnoremap <buffer> <F6> :GodotRunCurrent<CR> | |||||
| nnoremap <buffer> <F7> :GodotRunFZF<CR> | |||||
| endfunc | |||||
| augroup godot | au! | |||||
| au FileType gdscript call GodotSettings() | |||||
| augroup end | |||||
| " Setup YouCompleteMe to use Godot Language Server. | |||||
| " NOTE: Godot must be running and you must go to Project -> Project Settings -> Global and set Language Server to On. | |||||
| if !has_key( g:, 'ycm_language_server' ) | |||||
| let g:ycm_language_server = [] | |||||
| endif | |||||
| let g:ycm_language_server += [ | |||||
| \ { | |||||
| \ 'name': 'godot', | |||||
| \ 'filetypes': [ 'gdscript' ], | |||||
| \ 'project_root_files': [ 'project.godot' ], | |||||
| \ 'port': 6008 | |||||
| \ } | |||||
| \ ] | |||||
| " Register LSP server for Godot: | |||||
| call ale#linter#Define('gdscript', { | |||||
| \ 'name': 'godot', | |||||
| \ 'lsp': 'socket', | |||||
| \ 'address': '127.0.0.1:6008', | |||||
| \ 'project_root': 'project.godot', | |||||
| \}) |
| " let Vundle manage Vundle, required | " let Vundle manage Vundle, required | ||||
| Plugin 'VundleVim/Vundle.vim' | Plugin 'VundleVim/Vundle.vim' | ||||
| Plugin 'scrooloose/nerdtree' | Plugin 'scrooloose/nerdtree' | ||||
| Plugin 'junegunn/fzf.vim' | |||||
| Plugin 'vim-airline/vim-airline' | Plugin 'vim-airline/vim-airline' | ||||
| Plugin 'vim-airline/vim-airline-themes' | Plugin 'vim-airline/vim-airline-themes' | ||||
| Plugin 'airblade/vim-gitgutter' | Plugin 'airblade/vim-gitgutter' | ||||
| Plugin 'OmniSharp/omnisharp-vim' | Plugin 'OmniSharp/omnisharp-vim' | ||||
| Plugin 'dense-analysis/ale' | Plugin 'dense-analysis/ale' | ||||
| Plugin 'ycm-core/YouCompleteMe' | Plugin 'ycm-core/YouCompleteMe' | ||||
| Plugin 'habamax/vim-godot' | |||||
| Plugin 'jnurmine/Zenburn' | Plugin 'jnurmine/Zenburn' | ||||
| " All of your Plugins must be added before the following line | " All of your Plugins must be added before the following line |