Skip to content

Commit 832f125

Browse files
authored
Merge pull request #3 from Exafunction/main
merge
2 parents c0e0a18 + 6e4a661 commit 832f125

File tree

8 files changed

+619
-356
lines changed

8 files changed

+619
-356
lines changed

README.md

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<p align="center">
2-
<img width="300" alt="Codeium" src="codeium.svg"/>
2+
<img width="300" alt="Windsurf" src="windsurf.png"/>
33
</p>
44

55
---
66

77
[![Discord](https://img.shields.io/discord/1027685395649015980?label=community&color=5865F2&logo=discord&logoColor=FFFFFF)](https://discord.gg/3XFf78nAx5)
8-
[![Twitter Follow](https://img.shields.io/badge/style--blue?style=social&logo=twitter&label=Follow%20%40codeiumdev)](https://twitter.com/intent/follow?screen_name=codeiumdev)
9-
![License](https://img.shields.io/github/license/Exafunction/codeium.nvim)
10-
[![Docs](https://img.shields.io/badge/Codeium%20Docs-09B6A2)](https://docs.codeium.com)
11-
[![Canny Board](https://img.shields.io/badge/Feature%20Requests-6b69ff)](https://codeium.canny.io/feature-requests/)
12-
[![built with Codeium](https://codeium.com/badges/main)](https://codeium.com?repo_name=exafunction%2Fcodeium.nvim)
8+
[![Twitter Follow](https://img.shields.io/badge/style--blue?style=social&logo=twitter&label=Follow%20%40windsurf_ai)](https://twitter.com/intent/follow?screen_name=windsurf_ai)
9+
![License](https://img.shields.io/github/license/Exafunction/windsurf.vim)
10+
[![Docs](https://img.shields.io/badge/Windsurf%20Docs-09B6A2)](https://docs.windsurf.com)
11+
[![Canny Board](https://img.shields.io/badge/Feature%20Requests-6b69ff)](https://windsurf.canny.io/)
12+
[![built with Windsurf](https://windsurf.com/badges/main)](https://windsurf.com?repo_name=exafunction%2Fwindsurf.vim)
1313

1414
[![Visual Studio](https://img.shields.io/visual-studio-marketplace/i/Codeium.codeium?label=Visual%20Studio&logo=visualstudio)](https://marketplace.visualstudio.com/items?itemName=Codeium.codeium)
1515
[![JetBrains](https://img.shields.io/jetbrains/plugin/d/20540?label=JetBrains)](https://plugins.jetbrains.com/plugin/20540-codeium/)
1616
[![Open VSX](https://img.shields.io/open-vsx/dt/Codeium/codeium?label=Open%20VSX)](https://open-vsx.org/extension/Codeium/codeium)
1717
[![Google Chrome](https://img.shields.io/chrome-web-store/users/hobjkcpmjhlegmobgonaagepfckjkceh?label=Google%20Chrome&logo=googlechrome&logoColor=FFFFFF)](https://chrome.google.com/webstore/detail/codeium/hobjkcpmjhlegmobgonaagepfckjkceh)
1818

19-
# codeium.nvim
19+
# windsurf.nvim
2020

21-
Native [Codeium](https://www.codeium.com/) plugin for Neovim.
21+
Native [Windsurf](https://www.windsurf.com/) plugin for Neovim.
2222

2323
## Contributing
2424

@@ -34,7 +34,7 @@ Feel free to create an issue/PR if you want to see anything else implemented.
3434

3535
```lua
3636
use {
37-
"Exafunction/codeium.nvim",
37+
"Exafunction/windsurf.nvim",
3838
requires = {
3939
"nvim-lua/plenary.nvim",
4040
"hrsh7th/nvim-cmp",
@@ -50,7 +50,7 @@ use {
5050

5151
```lua
5252
{
53-
"Exafunction/codeium.nvim",
53+
"Exafunction/windsurf.nvim",
5454
dependencies = {
5555
"nvim-lua/plenary.nvim",
5656
"hrsh7th/nvim-cmp",
@@ -65,16 +65,18 @@ use {
6565
## Usage
6666

6767
After installation and configuration, you will need to authenticate with
68-
Codeium. This can be done by running `:Codeium Auth`, copying the token from
68+
Windsurf. This can be done by running `:Codeium Auth`, copying the token from
6969
your browser and pasting it into API token request.
7070

71-
To use Codeium Chat, execute the `:Codeium Chat` command. The chat will be opened
71+
To use Windsurf Chat, execute the `:Codeium Chat` command. The chat will be opened
7272
in your default browser using the xdg-open command.
7373

74+
You can globaly enable or disable Codeium Completion with `:Codeium Toggle` command.
75+
7476
## Options
7577

7678
- `config_path`: the path to the config file, used to store the API key.
77-
- `bin_path`: the path to the directory where the Codeium server will be downloaded to.
79+
- `bin_path`: the path to the directory where the Windsurf server will be downloaded to.
7880
- `api`: information about the API server to use:
7981
- `host`: the hostname. Example: `"codeium.example.com"`. Required when using enterprise mode
8082
- `port`: the port. Defaults to `443`
@@ -133,9 +135,9 @@ cmp.setup({
133135
})
134136
```
135137

136-
If you are seeing the `codeium` source as unused in `:CmpStatus`, make sure that `nvim-cmp` setup happens before the `codeium.nvim` setup.
138+
If you are seeing the `codeium` source as unused in `:CmpStatus`, make sure that `nvim-cmp` setup happens before the `windsurf.nvim` setup.
137139

138-
To set a symbol for codeium using lspkind, use the `Codeium` keyword. Example:
140+
To set a symbol for windsurf using lspkind, use the `Codeium` keyword. Example:
139141

140142
```lua
141143
cmp.setup({
@@ -151,6 +153,29 @@ cmp.setup({
151153
})
152154
```
153155

156+
### blink.cmp
157+
158+
Configuration example for [blink.cmp](https://github.com/Saghen/blink.cmp):
159+
160+
```lua
161+
{
162+
'saghen/blink.cmp',
163+
dependencies = {
164+
{
165+
'Exafunction/codeium.nvim',
166+
},
167+
},
168+
opts = {
169+
sources = {
170+
default = { 'lsp', 'path', 'snippets', 'buffer', 'codeium' },
171+
providers = {
172+
codeium = { name = 'Codeium', module = 'codeium.blink', async = true },
173+
},
174+
},
175+
},
176+
}
177+
```
178+
154179
### Virtual Text
155180

156181
The plugin supports showing completions in virtual text. Set `virtual_text.enabled` in the options to `true` to enable it.
@@ -236,14 +261,14 @@ require('codeium.virtual_text').setup({
236261
})
237262
```
238263

239-
### Show Codeium status in statusline
264+
### Show Windsurf status in statusline
240265

241-
When using virtual text, Codeium status can be generated by calling `require('codeium.virtual_text').status_string()`.
242-
It produces a 3 char long string with Codeium status:
266+
When using virtual text, Windsurf status can be generated by calling `require('codeium.virtual_text').status_string()`.
267+
It produces a 3 char long string with Windsurf status:
243268

244269
- `'3/8'` - third suggestion out of 8
245-
- `'0'` - Codeium returned no suggestions
246-
- `'*'` - waiting for Codeium response
270+
- `'0'` - Windsurf returned no suggestions
271+
- `'*'` - waiting for Windsurf response
247272

248273
In order to show it in status line add following line to your `.vimrc`:
249274

0 commit comments

Comments
 (0)