Skip to content

Commit

Permalink
Feat: Add codeium_bin option (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Jan 3, 2024
1 parent a31ff44 commit 4063291
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ function! s:SendHeartbeat(timer) abort
endfunction

function! codeium#server#Start(...) abort
let user_defined_codeium_bin = get(g:, 'codeium_bin', '')

if user_defined_codeium_bin != '' && filereadable(user_defined_codeium_bin)
let s:bin = user_defined_codeium_bin
call s:ActuallyStart()
return
endif

silent let os = substitute(system('uname'), '\n', '', '')
silent let arch = substitute(system('uname -m'), '\n', '', '')
let is_arm = stridx(arch, 'arm') == 0 || stridx(arch, 'aarch64') == 0
Expand Down
8 changes: 8 additions & 0 deletions doc/codeium.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ g:codeium_tab_fallback The fallback key when there is no suggestion display
>
let g:codeium_tab_fallback = "\t"
<
*g:codeium_bin*
g:codeium_bin Manually set the path to the `codeium` language server
binary on your system.
If unset, `codeium.vim` will fetch and download the
binary from the internet.
>
let g:codeium_bin = "~/.local/bin/codeium_language_server"
<

MAPS *codeium-maps*

Expand Down

0 comments on commit 4063291

Please sign in to comment.