gdscript support added
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
{
|
||||
"inlayHints.enable": false,
|
||||
"pyright.inlayHints.functionReturnTypes": false,
|
||||
"pyright.inlayHints.variableTypes": false
|
||||
"pyright.inlayHints.variableTypes": false,
|
||||
"languageserver": {
|
||||
"godot": {
|
||||
"host": "127.0.0.1",
|
||||
"filetypes": ["gdscript"],
|
||||
"port": 6005
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
vim/ftplugin/gdscript.vim
Normal file
8
vim/ftplugin/gdscript.vim
Normal file
@@ -0,0 +1,8 @@
|
||||
" to use folding provided by plugin
|
||||
setlocal foldmethod=expr
|
||||
setlocal shiftwidth=4
|
||||
setlocal tabstop=4
|
||||
nnoremap <buffer> <F4> :GodotRunLast<CR>
|
||||
nnoremap <buffer> <F5> :GodotRun<CR>
|
||||
nnoremap <buffer> <F6> :GodotRunCurrent<CR>
|
||||
nnoremap <buffer> <F7> :GodotRunFZF<CR>
|
||||
@@ -66,6 +66,7 @@ call plug#begin('~/.vim/bundle') "Начать искать плагины в э
|
||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||
Plug 'hashivim/vim-terraform'
|
||||
" Plug 'Exafunction/codeium.vim'
|
||||
Plug 'habamax/vim-godot'
|
||||
call plug#end() "Перестать это делать
|
||||
|
||||
"
|
||||
@@ -180,7 +181,7 @@ let g:ansible_yamlKeyName = 'yamlKey'
|
||||
"
|
||||
let g:coc_global_extensions = ['coc-pyright', 'coc-sh', 'coc-go']
|
||||
function! s:enable_coc_for_type()
|
||||
let l:filesuffix_whitelist = ['py', 'sh', 'go']
|
||||
let l:filesuffix_whitelist = ['py', 'sh', 'go', 'gd', 'gdscript']
|
||||
if index(l:filesuffix_whitelist, expand('%:e')) == -1
|
||||
let b:coc_enabled = 0
|
||||
endif
|
||||
@@ -196,3 +197,6 @@ let g:sneak#label = 1
|
||||
" YAML files config
|
||||
autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
let g:indentLine_char = '⦙'
|
||||
|
||||
" vim-go settings
|
||||
let g:go_fmt_autosave = 1
|
||||
|
||||
Reference in New Issue
Block a user