File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,16 @@ function! codeium#server#Start(...) abort
129
129
call s: ActuallyStart ()
130
130
return
131
131
endif
132
+ let user_defined_os = get (g: , ' codeium_os' , ' ' )
133
+ let user_defined_arch = get (g: , ' codeium_arch' , ' ' )
132
134
133
- silent let os = substitute (system (' uname' ), ' \n' , ' ' , ' ' )
134
- silent let arch = substitute (system (' uname -m' ), ' \n' , ' ' , ' ' )
135
+ if user_defined_os != ' ' && user_defined_arch != ' '
136
+ let os = user_defined_os
137
+ let arch = user_defined_arch
138
+ else
139
+ silent let os = substitute (system (' uname' ), ' \n' , ' ' , ' ' )
140
+ silent let arch = substitute (system (' uname -m' ), ' \n' , ' ' , ' ' )
141
+ endif
135
142
let is_arm = stridx (arch, ' arm' ) == 0 || stridx (arch, ' aarch64' ) == 0
136
143
137
144
if os == # ' Linux' && is_arm
Original file line number Diff line number Diff line change @@ -94,7 +94,20 @@ g:codeium_bin Manually set the path to the `codeium` language server
94
94
>
95
95
let g:codeium_bin = "~/.local/bin/codeium_language_server"
96
96
<
97
-
97
+ *g:codeium_os*
98
+ g:codeium_os Manually set the host OS, accepted values are
99
+ "Linux", "Darwin", "Windows". if unset, the value will
100
+ be obtained using `uname` .
101
+ >
102
+ let g:codeium_os = "Linux"
103
+ <
104
+ *g:codeium_arch*
105
+ g:codeium_arch Manually set the host architecture, accepted values
106
+ are "x86_64", "aarch64", "arm". If unset, the value
107
+ will be obtained using `uname -m`.
108
+ >
109
+ let g:codeium_arch = "x86_64"
110
+ <
98
111
MAPS *codeium-maps*
99
112
100
113
*codeium-i_<Tab>*
You can’t perform that action at this time.
0 commit comments