Skip to content

Commit

Permalink
Vim fixes (#461)
Browse files Browse the repository at this point in the history
* Vim fixes

* fix
  • Loading branch information
fortenforge authored Oct 4, 2024
1 parent b9be247 commit f74306e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions autoload/codeium/doc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ function! codeium#doc#GetDocument(bufId, curLine, curCol) abort
\ 'editor_language': editor_language,
\ 'language': get(s:language_enum, language, 0),
\ 'cursor_position': {'row': a:curLine - 1, 'col': a:curCol - 1},
\ 'absolute_path': fnamemodify(bufname(a:bufId), ':p'),
\ 'relative_path': fnamemodify(bufname(a:bufId), ':')
\ 'absolute_path_migrate_me_to_uri': fnamemodify(bufname(a:bufId), ':p'),
\ }

let line_ending = codeium#util#LineEndingChars(v:null)
Expand Down
6 changes: 5 additions & 1 deletion autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,13 @@ function! codeium#server#Start(...) abort
let config = get(g:, 'codeium_server_config', {})
if has_key(config, 'portal_url') && !empty(config.portal_url)
let response = system('curl -s ' . config.portal_url . '/api/version')
if v:shell_error != 0
if v:shell_error
let s:language_server_version = response
let s:language_server_sha = 'enterprise-' . s:language_server_version
else
call codeium#log#Error('Failed to fetch version from ' . config.portal_url)
call codeium#log#Error(v:shell_error)
call codeium#log#Error(v:stderr)
endif
endif

Expand Down

0 comments on commit f74306e

Please sign in to comment.