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

@@ -12,6 +12,10 @@ so ~/.vim/airline.vim
so ~/.vim/cs.vim
" -- DONE

" Setting up some Godot Engine bindings...
so ~/.vim/godot.vim


if exists('$SHELL')
set shell=$SHELL
else

+ 35
- 0
vim/godot.vim View File

@@ -0,0 +1,35 @@
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

@@ -10,6 +10,7 @@ call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'junegunn/fzf.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
@@ -17,6 +18,7 @@ Plugin 'bf4/vim-dark_eyes'
Plugin 'OmniSharp/omnisharp-vim'
Plugin 'dense-analysis/ale'
Plugin 'ycm-core/YouCompleteMe'
Plugin 'habamax/vim-godot'
Plugin 'jnurmine/Zenburn'

" All of your Plugins must be added before the following line

Loading…
Cancel
Save