updated configs

This commit is contained in:
2026-09-03 21:03:02 -06:00
parent 5528d67234
commit 955bce98fc
25 changed files with 492 additions and 59 deletions
+1
View File
@@ -25,6 +25,7 @@ call vundle#begin("$VIM_PLUGIN_DIR")
Plugin 'rrethy/vim-hexokinase' " 09.plugin-vim-hexokinase.vim
Plugin 'fatih/vim-go' " 10.plugin-vim-go.vim
Plugin 'rust-lang/rust.vim' " 11.plugin-rust.vim
Plugin 'habamax/vim-godot' " 12.plugin-vim-godot.vim
" ---------------------------------------------------------------------
call vundle#end()
+3
View File
@@ -1,5 +1,8 @@
if g:plugins_ok != 1 | finish | endif
" -------------------------------------------------------------------
if !has_key( g:, 'ycm_language_server' )
let g:ycm_language_server = []
endif
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_goto_buffer_command = 'new-tab'
+53
View File
@@ -0,0 +1,53 @@
if g:plugins_ok != 1 | finish | endif
" -------------------------------------------------------------------
" --- language server ----------------------
" note: YCM is pointing at 6015 instead of 6005; see ../../config/bin/godot-lsp-proxy.py
let g:ycm_language_server += [
\ {
\ 'name': 'godot',
\ 'filetypes': [ 'gdscript' ],
\ 'project_root_files': [ 'project.godot' ],
\ 'port': 6015,
\ }
\ ]
" --- linter (gdlint) ----------------------
let g:ale_linters['gdscript'] = ['gdlint']
function! GdlintHandle(buffer, lines) abort
let l:pattern = '\v^[^:]+:(\d+): (Error|Warning): (.+) \(([^)]+)\)$'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'type': l:match[2] ==# 'Error' ? 'E' : 'W',
\ 'text': l:match[3] . ' [' . l:match[4] . ']',
\})
endfor
return l:output
endfunction
call ale#linter#Define('gdscript', {
\ 'name': 'gdlint',
\ 'executable': 'gdlint',
\ 'cwd': '%s:h',
\ 'command': 'gdlint %s',
\ 'callback': function('GdlintHandle'),
\ 'output_stream': 'stderr',
\})
" --- formatter (gdformat) -----------------
function! GdformatFix(buffer) abort
return { 'command': 'gdformat -' }
endfunction
let g:ale_fixers['gdscript'] = [function('GdformatFix')]
call ale#Set('gdscript_gdformat_executable', 'gdformat')
+2 -1
View File
@@ -56,9 +56,10 @@ augroup filetype_specific_formatting
autocmd FileType go call FormatFileType(4, v:false, 'manual', 99, v:false)
autocmd FileType json call FormatFileType(2, v:false, 'indent', 99, v:false)
autocmd FileType smarty call FormatFileType(2, v:true, 'indent', 99, v:false)
autocmd FileType gdscript call FormatFileType(8, v:false, 'indent', 99, v:false)
augroup end
let g:markdown_fenced_languages = ['javascript', 'json', 'python', 'bash', 'yaml', 'shell=zsh', 'sql']
let g:markdown_fenced_languages = ['javascript', 'json', 'python', 'bash', 'yaml', 'shell=zsh', 'sql', 'gdscript']
" }}}
syntax on