Skip to content

Commit

Permalink
Only load godot on gdscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Nov 22, 2021
1 parent b70b56f commit 1582dd7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,17 @@ let g:SuperTabDefaultCompletionType = "<c-n>"
nnoremap <leader>g :LazyGit<CR>
let g:lazygit_floating_window_corner_chars = ['', '', '', '']
" to use folding provided by vim-godot
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>
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>
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
Expand Down

0 comments on commit 1582dd7

Please sign in to comment.