Browse Source

Added FZF plugin and a Godot engine plugin for Vim

master
Bryan Miller 3 years ago
parent
commit
f879906f02
No known key found for this signature in database
3 changed files with 41 additions and 0 deletions
  1. +4
    -0
      vim/.vimrc
  2. +35
    -0
      vim/godot.vim
  3. +2
    -0
      vim/plugins.vim

+ 4
- 0
vim/.vimrc View File

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

+ 35
- 0
vim/godot.vim View File

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',
\})

+ 2
- 0
vim/plugins.vim View File

" 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

Loading…
Cancel
Save