Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/filetypes disabled by default #315

Open
wants to merge 1,441 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1441 commits
Select commit Hold shift + click to select a range
3d96abb
Improve behavior of Codeium Auth (#161)
psalm842 Jun 23, 2023
767774c
Project import generated by Copybara. (#165)
fortenforge Jun 25, 2023
1ef2da0
Project import generated by Copybara. (#166)
pqn Jun 27, 2023
689f611
Project import generated by Copybara. (#167)
fortenforge Jun 28, 2023
5e500cf
Project import generated by Copybara. (#169)
pqn Jun 28, 2023
c310eba
Project import generated by Copybara. (#171)
njiang747 Jun 29, 2023
1290d44
Project import generated by Copybara. (#172)
fortenforge Jun 30, 2023
1ab5da0
Project import generated by Copybara. (#174)
fortenforge Jul 1, 2023
15aced5
Bring to head of internal repo (#179)
njiang747 Jul 5, 2023
e9363cd
Project import generated by Copybara. (#180)
njiang747 Jul 6, 2023
b02860f
silence non-interactive system() calls (#181)
toofar Jul 8, 2023
8cff364
Project import generated by Copybara. (#183)
fortenforge Jul 10, 2023
6118377
Project import generated by Copybara. (#184)
fortenforge Jul 11, 2023
9d8224f
Project import generated by Copybara. (#186)
njiang747 Jul 13, 2023
dc4b310
Project import generated by Copybara. (#189)
fortenforge Jul 18, 2023
31eeed0
Project import generated by Copybara. (#192)
fortenforge Jul 24, 2023
e4d89ef
Project import generated by Copybara. (#194)
fortenforge Jul 28, 2023
a6bd173
Project import generated by Copybara. (#197)
fortenforge Aug 1, 2023
ed830c2
Project import generated by Copybara. (#198)
fortenforge Aug 4, 2023
c30cfba
Project import generated by Copybara. (#204)
njiang747 Aug 18, 2023
3172353
Project import generated by Copybara. (#205)
fortenforge Aug 21, 2023
6b13833
Project import generated by Copybara. (#206)
fortenforge Aug 21, 2023
6571957
Project import generated by Copybara. (#207)
fortenforge Aug 22, 2023
7ca44fb
Project import generated by Copybara. (#209)
njiang747 Aug 23, 2023
15999bb
Project import generated by Copybara. (#210)
fortenforge Aug 25, 2023
f327079
Project import generated by Copybara. (#214)
fortenforge Aug 29, 2023
c13d744
Project import generated by Copybara. (#216)
fortenforge Aug 30, 2023
5f979f0
Project import generated by Copybara. (#218)
njiang747 Sep 6, 2023
dff4b2e
Project import generated by Copybara. (#221)
fortenforge Sep 11, 2023
80da754
Project import generated by Copybara. (#224)
fortenforge Sep 15, 2023
472975c
Add `built with Codeium` badge to readme (#227)
khou22 Sep 20, 2023
b2d7c2e
Update README.md (#228)
khou22 Sep 21, 2023
b4cd976
Project import generated by Copybara. (#229)
fortenforge Sep 21, 2023
01ea8fc
fix: Fix completion eating characters when using multi-byte character…
weirongxu Sep 26, 2023
c91f9c7
Add square codeium asset (#233)
khou22 Sep 26, 2023
c53bb4d
Simple b&w logo (#234)
khou22 Sep 26, 2023
78e79e1
Update server.vim (#238)
fortenforge Oct 3, 2023
03c8461
Use public worker (#239)
fortenforge Oct 3, 2023
5f42aff
error handling for missing `gzip` (#240)
cprn Oct 5, 2023
296966c
Add simple icons asset (#241)
khou22 Oct 5, 2023
bbebb46
Project import generated by Copybara. (#245)
fortenforge Oct 9, 2023
93e82ae
Project import generated by Copybara. (#246)
fortenforge Oct 11, 2023
9d208c0
Describe vim-airline support in README.md (#247)
IngoMeyer441 Oct 11, 2023
85f3011
Project import generated by Copybara. (#250)
fortenforge Oct 13, 2023
e76b7c6
Undo README revert (#251)
fortenforge Oct 14, 2023
a41b0d6
Add new variable: `g:codeium_filetypes_disabled_by_default`.
zArubaru Oct 16, 2023
b97ae32
Project import generated by Copybara. (#256)
fortenforge Oct 19, 2023
a0c8b25
Project import generated by Copybara. (#257)
fortenforge Oct 20, 2023
a96d417
Project import generated by Copybara. (#259)
fortenforge Oct 27, 2023
80ae7a2
Project import generated by Copybara. (#262)
fortenforge Nov 8, 2023
3b4ef8e
Project import generated by Copybara. (#266)
pqn Nov 27, 2023
28def08
fix: #273: accepting suggestion overrides yank register (#274)
arnevm123 Dec 4, 2023
b99eab6
Bring to head of internal repo (#276)
fortenforge Dec 8, 2023
f56ebc9
Update keymap options README.md (#285)
flppv Dec 18, 2023
814af06
Project import generated by Copybara. (#288)
fortenforge Dec 22, 2023
78dd5bb
Feat: Add command for toggling Codeium (#283)
jakubbortlik Dec 26, 2023
67ef6c7
Feat: Add codeium_bin option (#292)
GaetanLepage Jan 3, 2024
8089d6d
Bring to head of internal repo (#301)
fortenforge Jan 18, 2024
ed1923e
Project import generated by Copybara. (#307)
fortenforge Jan 26, 2024
6ceb0ad
Revert "Project import generated by Copybara. (#307)"
fortenforge Jan 26, 2024
fa4ef77
fix: typo in code block language (#309)
wilriker Jan 27, 2024
68ec831
Project import generated by Copybara. (#312)
fortenforge Feb 1, 2024
32113af
Add new variable: `g:codeium_filetypes_disabled_by_default`.
zArubaru Oct 16, 2023
ab98680
Merge branch 'feature/filetypes-disabled-by-default' of https://githu…
MissLov3ly Feb 13, 2024
266f1c6
add flag for disabling default tab mapping
AnthonyUtt Jan 19, 2023
cc9d71b
Project import generated by Copybara. (#34)
pqn Jan 23, 2023
da24ade
add better keybinding configuration/documentation
sullivan-sean Jan 23, 2023
faa57a1
Update README.md
sullivan-sean Jan 23, 2023
4fc8051
Project import generated by Copybara. (#37)
pqn Jan 23, 2023
8fb241b
Fix: use powershell to exctract .gzip executable on windows (#39)
TheLeoP Jan 24, 2023
f6e6c38
Project import generated by Copybara. (#40)
pqn Jan 25, 2023
ab58ffd
Project import generated by Copybara. (#44)
pqn Jan 28, 2023
952b814
Project import generated by Copybara. (#49)
pqn Feb 1, 2023
bedd552
Project import generated by Copybara. (#50)
pqn Feb 1, 2023
91327c4
Project import generated by Copybara. (#57)
pqn Feb 1, 2023
d2bfb55
Add statusline support (#46)
klew Feb 2, 2023
ddae031
Project import generated by Copybara. (#63)
pqn Feb 8, 2023
795fdde
Project import generated by Copybara. (#68)
pqn Feb 9, 2023
fac2b0f
Project import generated by Copybara. (#69)
pqn Feb 9, 2023
2d4d7c3
Update badge
pqn Feb 9, 2023
c67a465
Project import generated by Copybara. (#74)
pqn Feb 13, 2023
26aa7cb
Project import generated by Copybara. (#76)
pqn Feb 17, 2023
1def692
Project import generated by Copybara. (#77)
pqn Feb 17, 2023
96a5d2f
Project import generated by Copybara. (#78)
pqn Feb 18, 2023
e01bf6b
Project import generated by Copybara. (#81)
pqn Feb 24, 2023
2a6e1f4
Project import generated by Copybara. (#92)
fortenforge Mar 14, 2023
94a020d
Project import generated by Copybara. (#96)
fortenforge Mar 16, 2023
20cac3f
Project import generated by Copybara. (#98)
fortenforge Mar 17, 2023
8d7fd22
Project import generated by Copybara. (#99)
fortenforge Mar 21, 2023
ce7f485
Project import generated by Copybara. (#102)
fortenforge Mar 27, 2023
b837858
Project import generated by Copybara. (#105)
fortenforge Mar 31, 2023
1138442
Project import generated by Copybara. (#108)
fortenforge Apr 5, 2023
aa29dfb
Project import generated by Copybara. (#113)
fortenforge Apr 12, 2023
6d5c20b
Project import generated by Copybara. (#117)
fortenforge Apr 17, 2023
925fc4b
Project import generated by Copybara. (#123)
pqn Apr 28, 2023
2ff3129
Project import generated by Copybara. (#128)
fortenforge May 6, 2023
7bbd6db
Project import generated by Copybara. (#131)
fortenforge May 9, 2023
3cf5789
Document g:codeium_idle_delay (#138)
Cy-r0 May 13, 2023
fa2992b
Project import generated by Copybara. (#141)
fortenforge May 16, 2023
6df786f
Add g:codeium_render (#137)
Shougo May 17, 2023
04ea431
Add g:codeium_tab_fallback documentation (#143)
Shougo May 17, 2023
b8092ad
Project import generated by Copybara. (#147)
fortenforge Jun 2, 2023
486e263
Project import generated by Copybara. (#152)
fortenforge Jun 9, 2023
e158448
Project import generated by Copybara. (#153)
fortenforge Jun 12, 2023
6c371dc
Project import generated by Copybara. (#154)
pqn Jun 12, 2023
3446f26
Project import generated by Copybara. (#155)
njiang747 Jun 15, 2023
2c76cb9
Project import generated by Copybara. (#158)
pqn Jun 20, 2023
23b5ca6
Project import generated by Copybara. (#162)
fortenforge Jun 21, 2023
2d0b411
Project import generated by Copybara. (#165)
fortenforge Jun 25, 2023
d9ff96b
Project import generated by Copybara. (#166)
pqn Jun 27, 2023
3e681dd
Project import generated by Copybara. (#167)
fortenforge Jun 28, 2023
c235f93
Project import generated by Copybara. (#169)
pqn Jun 28, 2023
4844e71
Project import generated by Copybara. (#171)
njiang747 Jun 29, 2023
6046c14
Project import generated by Copybara. (#172)
fortenforge Jun 30, 2023
01ae256
Project import generated by Copybara. (#174)
fortenforge Jul 1, 2023
5e0b835
Added branch main for vim plug installation instructions (#178)
igor-starostenko Jul 3, 2023
8fbda40
Bring to head of internal repo (#179)
njiang747 Jul 5, 2023
d43b9a0
Project import generated by Copybara. (#180)
njiang747 Jul 6, 2023
dd89acb
silence non-interactive system() calls (#181)
toofar Jul 8, 2023
f75a24e
Project import generated by Copybara. (#183)
fortenforge Jul 10, 2023
25e2755
Project import generated by Copybara. (#184)
fortenforge Jul 11, 2023
f06c792
Project import generated by Copybara. (#186)
njiang747 Jul 13, 2023
6275cc1
Project import generated by Copybara. (#189)
fortenforge Jul 18, 2023
235aa10
Project import generated by Copybara. (#192)
fortenforge Jul 24, 2023
1035a64
Project import generated by Copybara. (#194)
fortenforge Jul 28, 2023
974f4bf
Project import generated by Copybara. (#197)
fortenforge Aug 1, 2023
5cbb6dc
Project import generated by Copybara. (#198)
fortenforge Aug 4, 2023
65977ce
feat: add lazy installation option (#203)
RotrixLOL Aug 16, 2023
1f2d07a
Project import generated by Copybara. (#204)
njiang747 Aug 18, 2023
ddd44cb
Project import generated by Copybara. (#205)
fortenforge Aug 21, 2023
72dd1cd
Project import generated by Copybara. (#206)
fortenforge Aug 21, 2023
99db60f
Project import generated by Copybara. (#207)
fortenforge Aug 22, 2023
5a7643f
Project import generated by Copybara. (#209)
njiang747 Aug 23, 2023
fb11d3f
Project import generated by Copybara. (#210)
fortenforge Aug 25, 2023
a7de291
Project import generated by Copybara. (#214)
fortenforge Aug 29, 2023
1fcfb35
Project import generated by Copybara. (#216)
fortenforge Aug 30, 2023
6ee8aa0
Project import generated by Copybara. (#218)
njiang747 Sep 6, 2023
350895d
Project import generated by Copybara. (#221)
fortenforge Sep 11, 2023
f353955
Project import generated by Copybara. (#224)
fortenforge Sep 15, 2023
bd50b5a
Add `built with Codeium` badge to readme (#227)
khou22 Sep 20, 2023
b1fa318
Update README.md (#228)
khou22 Sep 21, 2023
1dcee97
Project import generated by Copybara. (#229)
fortenforge Sep 21, 2023
7871356
Add square codeium asset (#233)
khou22 Sep 26, 2023
6348490
Simple b&w logo (#234)
khou22 Sep 26, 2023
3548f05
Update server.vim (#238)
fortenforge Oct 3, 2023
dea74ed
error handling for missing `gzip` (#240)
cprn Oct 5, 2023
4856018
Add simple icons asset (#241)
khou22 Oct 5, 2023
5fea024
Project import generated by Copybara. (#245)
fortenforge Oct 9, 2023
69f6d97
Project import generated by Copybara. (#246)
fortenforge Oct 11, 2023
baa7814
Describe vim-airline support in README.md (#247)
IngoMeyer441 Oct 11, 2023
3c33ce8
Project import generated by Copybara. (#250)
fortenforge Oct 13, 2023
5d41ef9
Undo README revert (#251)
fortenforge Oct 14, 2023
978f5c6
Add new variable: `g:codeium_filetypes_disabled_by_default`.
zArubaru Oct 16, 2023
8344b94
Merge branch 'feature/filetypes-disabled-by-default' of https://githu…
MissLov3ly Feb 13, 2024
3160f3f
add flag for disabling default tab mapping
AnthonyUtt Jan 19, 2023
b82cb1e
Project import generated by Copybara. (#34)
pqn Jan 23, 2023
932b0e1
add better keybinding configuration/documentation
sullivan-sean Jan 23, 2023
f9a4a23
Update README.md
sullivan-sean Jan 23, 2023
0b343ab
Project import generated by Copybara. (#37)
pqn Jan 23, 2023
be6d509
Fix: use powershell to exctract .gzip executable on windows (#39)
TheLeoP Jan 24, 2023
83801be
Project import generated by Copybara. (#40)
pqn Jan 25, 2023
89287d7
Project import generated by Copybara. (#44)
pqn Jan 28, 2023
8fa33e7
Project import generated by Copybara. (#49)
pqn Feb 1, 2023
91a03e4
Project import generated by Copybara. (#50)
pqn Feb 1, 2023
30b8e5d
Project import generated by Copybara. (#57)
pqn Feb 1, 2023
51b767d
Add statusline support (#46)
klew Feb 2, 2023
2db633a
Project import generated by Copybara. (#63)
pqn Feb 8, 2023
47b6fc0
Project import generated by Copybara. (#68)
pqn Feb 9, 2023
616b4ed
Project import generated by Copybara. (#69)
pqn Feb 9, 2023
4ffd217
Update badge
pqn Feb 9, 2023
914f3b8
Project import generated by Copybara. (#74)
pqn Feb 13, 2023
a9d6856
Project import generated by Copybara. (#76)
pqn Feb 17, 2023
8224790
Project import generated by Copybara. (#77)
pqn Feb 17, 2023
a397b8e
Project import generated by Copybara. (#78)
pqn Feb 18, 2023
916daaf
Project import generated by Copybara. (#81)
pqn Feb 24, 2023
2148cb6
Project import generated by Copybara. (#92)
fortenforge Mar 14, 2023
048251b
Project import generated by Copybara. (#96)
fortenforge Mar 16, 2023
1bbe0c0
Project import generated by Copybara. (#98)
fortenforge Mar 17, 2023
d1d4a4f
Project import generated by Copybara. (#99)
fortenforge Mar 21, 2023
ab2d8c1
Project import generated by Copybara. (#102)
fortenforge Mar 27, 2023
68c566f
Project import generated by Copybara. (#105)
fortenforge Mar 31, 2023
75d3444
Project import generated by Copybara. (#108)
fortenforge Apr 5, 2023
d3bfb1a
Project import generated by Copybara. (#113)
fortenforge Apr 12, 2023
0654c71
Project import generated by Copybara. (#117)
fortenforge Apr 17, 2023
461e675
Project import generated by Copybara. (#123)
pqn Apr 28, 2023
27c1951
Project import generated by Copybara. (#128)
fortenforge May 6, 2023
c8fcf21
Project import generated by Copybara. (#131)
fortenforge May 9, 2023
daa5d81
Document g:codeium_idle_delay (#138)
Cy-r0 May 13, 2023
2f4ee49
Project import generated by Copybara. (#141)
fortenforge May 16, 2023
31f6e92
Add g:codeium_render (#137)
Shougo May 17, 2023
c972068
Add g:codeium_tab_fallback documentation (#143)
Shougo May 17, 2023
ed8ec77
Project import generated by Copybara. (#147)
fortenforge Jun 2, 2023
b1832b6
Project import generated by Copybara. (#152)
fortenforge Jun 9, 2023
4254c5f
Project import generated by Copybara. (#153)
fortenforge Jun 12, 2023
149b5a3
Project import generated by Copybara. (#154)
pqn Jun 12, 2023
eae8267
Project import generated by Copybara. (#155)
njiang747 Jun 15, 2023
b6cc7bd
Project import generated by Copybara. (#158)
pqn Jun 20, 2023
d5e56f7
Project import generated by Copybara. (#162)
fortenforge Jun 21, 2023
af980d3
Project import generated by Copybara. (#165)
fortenforge Jun 25, 2023
3df87d0
Project import generated by Copybara. (#166)
pqn Jun 27, 2023
78f1aff
Project import generated by Copybara. (#167)
fortenforge Jun 28, 2023
d5d47ba
Project import generated by Copybara. (#169)
pqn Jun 28, 2023
ac6f494
Project import generated by Copybara. (#171)
njiang747 Jun 29, 2023
e746c49
Project import generated by Copybara. (#172)
fortenforge Jun 30, 2023
f07b591
Project import generated by Copybara. (#174)
fortenforge Jul 1, 2023
e0aab51
Added branch main for vim plug installation instructions (#178)
igor-starostenko Jul 3, 2023
23fcdcb
Bring to head of internal repo (#179)
njiang747 Jul 5, 2023
88b33b3
Project import generated by Copybara. (#180)
njiang747 Jul 6, 2023
55db2cf
silence non-interactive system() calls (#181)
toofar Jul 8, 2023
fe2605f
Project import generated by Copybara. (#183)
fortenforge Jul 10, 2023
0693faa
Project import generated by Copybara. (#184)
fortenforge Jul 11, 2023
520cc80
Project import generated by Copybara. (#186)
njiang747 Jul 13, 2023
66ef15c
Project import generated by Copybara. (#189)
fortenforge Jul 18, 2023
bf9a106
Project import generated by Copybara. (#192)
fortenforge Jul 24, 2023
95ae6ae
Project import generated by Copybara. (#194)
fortenforge Jul 28, 2023
005d4fb
Project import generated by Copybara. (#197)
fortenforge Aug 1, 2023
fb51e8d
Project import generated by Copybara. (#198)
fortenforge Aug 4, 2023
e406d9d
feat: add lazy installation option (#203)
RotrixLOL Aug 16, 2023
118a112
Project import generated by Copybara. (#204)
njiang747 Aug 18, 2023
c6ffc8e
Project import generated by Copybara. (#205)
fortenforge Aug 21, 2023
9a5a982
Project import generated by Copybara. (#206)
fortenforge Aug 21, 2023
28e669d
Project import generated by Copybara. (#207)
fortenforge Aug 22, 2023
268499d
Project import generated by Copybara. (#209)
njiang747 Aug 23, 2023
1b790c6
Project import generated by Copybara. (#210)
fortenforge Aug 25, 2023
4595964
Project import generated by Copybara. (#214)
fortenforge Aug 29, 2023
b38ec0b
Project import generated by Copybara. (#216)
fortenforge Aug 30, 2023
4fc6c14
Project import generated by Copybara. (#218)
njiang747 Sep 6, 2023
f6d32de
Project import generated by Copybara. (#221)
fortenforge Sep 11, 2023
92ef2e0
Project import generated by Copybara. (#224)
fortenforge Sep 15, 2023
a07b715
Add `built with Codeium` badge to readme (#227)
khou22 Sep 20, 2023
0a7e50f
Update README.md (#228)
khou22 Sep 21, 2023
2e64b9a
Project import generated by Copybara. (#229)
fortenforge Sep 21, 2023
806ddf7
Add square codeium asset (#233)
khou22 Sep 26, 2023
91034b9
Simple b&w logo (#234)
khou22 Sep 26, 2023
f8dce19
Update server.vim (#238)
fortenforge Oct 3, 2023
a08e365
error handling for missing `gzip` (#240)
cprn Oct 5, 2023
971dfd4
Add simple icons asset (#241)
khou22 Oct 5, 2023
2e197fd
Project import generated by Copybara. (#245)
fortenforge Oct 9, 2023
2a6162b
Project import generated by Copybara. (#246)
fortenforge Oct 11, 2023
33d1e98
Describe vim-airline support in README.md (#247)
IngoMeyer441 Oct 11, 2023
fea4829
Project import generated by Copybara. (#250)
fortenforge Oct 13, 2023
58f0e16
Undo README revert (#251)
fortenforge Oct 14, 2023
6d6696c
Add new variable: `g:codeium_filetypes_disabled_by_default`.
zArubaru Oct 16, 2023
b21a10e
Merge branch 'pr/252' into feature/filetypes-disabled-by-default
MissLov3ly Feb 13, 2024
579be46
Merge branch 'feature/filetypes-disabled-by-default' of https://githu…
MissLov3ly Feb 13, 2024
b900d97
Merge branch 'varun/readme_twitter_follow'
MissLov3ly Feb 13, 2024
2ff12c9
Merge branch 'rahul/add-version-workflow' into sean/italics
MissLov3ly Feb 13, 2024
8e9d74b
Merge branch 'sean/italics' into rahul/add-version-workflow
MissLov3ly Feb 13, 2024
b6cf35d
Merge branch 'main' into feature/filetypes-disabled-by-default
MissLov3ly Feb 13, 2024
566b6bd
Merge branch 'rahul/add-version-workflow' into feature/filetypes-disa…
MissLov3ly Feb 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let g:codeium_disable_bindings = 1

or in Neovim:

```lua
```vim
vim.g.codeium_disable_bindings = 1
```

Expand All @@ -91,10 +91,10 @@ use {
'Exafunction/codeium.vim',
config = function ()
-- Change '<C-g>' here to any keycode you like.
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true })
vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true })
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true })
vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true })
vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true })
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true })
end
}
```
Expand All @@ -116,31 +116,36 @@ let g:codeium_filetypes = {

Codeium is enabled by default for most filetypes.

You can also _disable_ codeium by default with the `g:codeium_enabled`
variable:
You can also _disable_ codeium by default with the `g:codeium_enabled` variable,
and enable it manually per buffer by running `:CodeiumEnable`:

```vim
let g:codeium_enabled = v:false
```

or in Neovim:
Or you can disable codeium for _all filetypes_ with the `g:codeium_filetypes_disabled_by_default` variable,
and use the `g:codeium_filetypes` variable to selectively enable codeium for specified filetypes:

```lua
vim.g.codeium_enabled = false
```vim
" let g:codeium_enabled = v:true
let g:codeium_filetypes_disabled_by_default = v:true

let g:codeium_filetypes = {
\ "rust": v:true,
\ "typescript": v:true,
\ }
```

Instead, if you would like to just disable the automatic triggering of
completions:
If you would like to just disable the automatic triggering of completions:

```vim
let g:codeium_manual = v:true
```

### Show Codeium status in statusline

Codeium status can be generated by calling the `codeium#GetStatusString()` function. In
Neovim, you can use `vim.api.nvim_call_function("codeium#GetStatusString", {})` instead.
It produces a 3 char long string with Codeium status:
Codeium status can be generated by calling `codeium#GetStatusString()` function.
It produce 3 char long string with status:
- `'3/8'` - third suggestion out of 8
- `'0'` - Codeium returned no suggestions
- `'*'` - waiting for Codeium response
Expand Down
Binary file added autoload/.DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion autoload/codeium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ function! codeium#Enabled() abort

let codeium_filetypes = s:default_codeium_enabled
call extend(codeium_filetypes, get(g:, 'codeium_filetypes', {}))
if !get(codeium_filetypes, &filetype, 1)
call extend(codeium_filetypes, {'': 1}) " `''` should be forced to `1`, otherwise codeium may be unable start.

let codeium_filetypes_disabled_by_default = get(g:, 'codeium_filetypes_disabled_by_default') || get(b:, 'codeium_filetypes_disabled_by_default')

if !get(codeium_filetypes, &filetype, !codeium_filetypes_disabled_by_default)
return v:false
endif

Expand Down
33 changes: 8 additions & 25 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let s:language_server_version = '1.6.28'
let s:language_server_sha = 'f485965568948013d9f47815917f2f1f3a99089d'
let s:language_server_version = '1.2.104'
let s:language_server_sha = 'ab59278dfa738977096f6bfc2299d9941fcc3252'
let s:root = expand('<sfile>:h:h:h')
let s:bin = v:null

Expand Down Expand Up @@ -31,7 +31,7 @@ function! s:OnExit(result, status, on_complete_cb) abort
let did_close = has_key(a:result, 'closed')
if did_close
call remove(a:result, 'closed')
call a:on_complete_cb(a:result.out, a:result.err, a:status)
call a:on_complete_cb(a:result.out, a:status)
else
" Wait until we receive OnClose, and call on_complete_cb then.
let a:result.exit_status = a:status
Expand All @@ -41,7 +41,7 @@ endfunction
function! s:OnClose(result, on_complete_cb) abort
let did_exit = has_key(a:result, 'exit_status')
if did_exit
call a:on_complete_cb(a:result.out, a:result.err, a:result.exit_status)
call a:on_complete_cb(a:result.out, a:result.exit_status)
else
" Wait until we receive OnExit, and call on_complete_cb then.
let a:result.closed = v:true
Expand All @@ -65,21 +65,20 @@ function! codeium#server#Request(type, data, ...) abort
if s:server_port is# v:null
throw 'Server port has not been properly initialized.'
endif
let uri = 'http://127.0.0.1:' . s:server_port .
let uri = 'http://localhost:' . s:server_port .
\ '/exa.language_server_pb.LanguageServerService/' . a:type
let data = json_encode(a:data)
let args = [
\ 'curl', uri,
\ '--header', 'Content-Type: application/json',
\ '-d@-'
\ ]
let result = {'out': [], 'err': []}
let result = {'out': []}
let ExitCallback = a:0 && !empty(a:1) ? a:1 : function('s:NoopCallback')
if has('nvim')
let jobid = jobstart(args, {
\ 'on_stdout': { channel, data, t -> add(result.out, join(data, "\n")) },
\ 'on_stderr': { channel, data, t -> add(result.err, join(data, "\n")) },
\ 'on_exit': { job, status, t -> ExitCallback(result.out, result.err, status) },
\ 'on_exit': { job, status, t -> ExitCallback(result.out, status) },
\ })
call chansend(jobid, data)
call chanclose(jobid, 'stdin')
Expand All @@ -89,7 +88,6 @@ function! codeium#server#Request(type, data, ...) abort
\ 'in_mode': 'raw',
\ 'out_mode': 'raw',
\ 'out_cb': { channel, data -> add(result.out, data) },
\ 'err_cb': { channel, data -> add(result.err, data) },
\ 'exit_cb': { job, status -> s:OnExit(result, status, ExitCallback) },
\ 'close_cb': { channel -> s:OnClose(result, ExitCallback) }
\ })
Expand Down Expand Up @@ -122,14 +120,6 @@ 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 All @@ -154,14 +144,7 @@ function! codeium#server#Start(...) abort
if !filereadable(s:bin)
call delete(s:bin)
if sha ==# s:language_server_sha
let config = get(g:, 'codeium_server_config', {})
if has_key(config, 'portal_url') && !empty(config.portal_url)
let base_url = config.portal_url
else
let base_url = 'https://github.com/Exafunction/codeium/releases/download'
endif
let base_url = substitute(base_url, '/\+$', '', '')
let url = base_url . '/language-server-v' . s:language_server_version . '/language_server_' . bin_suffix . '.gz'
let url = 'https://github.com/Exafunction/codeium/releases/download/language-server-v' . s:language_server_version . '/language_server_' . bin_suffix . '.gz'
else
let url = 'https://storage.googleapis.com/exafunction-dist/codeium/' . sha . '/language_server_' . bin_suffix . '.gz'
endif
Expand Down
14 changes: 0 additions & 14 deletions doc/codeium.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ COMMANDS *:Codeium*
:Codeium EnableBuffer Re-enable Codeium completions in the current
buffer after running :Codeium DisableBuffer

*:Codeium_Toggle*
:Codeium Toggle Enable Codeium completions if they are disabled.
Disable Codeium completions if they are enabled. Does
NOT enable completions for current buffer, if they are
disabled with :Codeium DisableBuffer. However, still
affects other buffers.

OPTIONS *codeium-options*

Expand Down Expand Up @@ -86,14 +80,6 @@ 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
4 changes: 2 additions & 2 deletions plugin/codeium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ endif

function! s:SetStyle() abort
if &t_Co == 256
hi def CodeiumSuggestion guifg=#808080 ctermfg=244
hi def CodeiumSuggestion guifg=#808080 ctermfg=244 cterm=italic gui=italic
else
hi def CodeiumSuggestion guifg=#808080 ctermfg=8
hi def CodeiumSuggestion guifg=#808080 ctermfg=8 cterm=italic gui=italic
endif
hi def link CodeiumAnnotation Normal
endfunction
Expand Down