Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 37 additions & 0 deletions .github/workflows/update-copilot-dist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update copilot/dist

on:
schedule:
- cron: '0 0 * * *'
push:
branches: [master]

jobs:
update_copilot_dist:
runs-on: ubuntu-latest
name: Update copilot/dist
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Checkout github/copilot.vim
uses: actions/checkout@v3
with:
repository: github/copilot.vim
fetch-depth: 1
path: copilot.vim

- name: Copy latest copilot.vim/dist
run: |
cp -r copilot.vim/dist/* copilot/dist/

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: "copilot/dist/*"
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base: master
branch: create-pull-request/update-copilot-dist
commit-message: "feat: update to latest copilot.vim/dist"
reviewers: MunifTanjim,zbirenbaum
title: "Update copilot.vim/dist"
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ require('copilot').setup({

return true
end,
lsp_binary = nil,
server_opts_overrides = {},
})
```
Expand Down Expand Up @@ -280,6 +279,16 @@ When `log_lsp_messages` is true, LSP log messages (`window/logMessage`) events w

Careful turning on all logging features as the log files may get very large over time, and are not pruned by the application.

### copilot_node_command

Use this field to provide the path to a specific node version such as one installed by nvm. Node.js version must be 18.x or newer.

Example:

```lua
copilot_node_command = vim.fn.expand("$HOME") .. "/.config/nvm/versions/node/v18.18.2/bin/node", -- Node.js version must be > 18.x
```

### server_opts_overrides

Override copilot lsp client settings. The `settings` field is where you can set the values of the options defined in [SettingsOpts.md](./SettingsOpts.md).
Expand Down Expand Up @@ -344,18 +353,6 @@ require("copilot").setup {
}
```

### lsp_binary

This allows you to specify the path to the copilot lsp binary.
This will disable the download of the binary and use the one specified.
example:

```lua
require("copilot").setup {
lsp_binary = "/home/user/.local/bin/copilot-language-server",
}
```

## Commands

`copilot.lua` defines the `:Copilot` command that can perform various actions. It has completion support, so try it out.
Expand Down
3 changes: 0 additions & 3 deletions copilot/.gitignore

This file was deleted.

Binary file added copilot/dist/compiled/darwin/arm64/kerberos.node
Binary file not shown.
Binary file not shown.
Binary file added copilot/dist/compiled/darwin/x64/kerberos.node
Binary file not shown.
Binary file not shown.
Binary file added copilot/dist/compiled/linux/arm64/kerberos.node
Binary file not shown.
Binary file not shown.
Binary file added copilot/dist/compiled/linux/x64/kerberos.node
Binary file not shown.
Binary file added copilot/dist/compiled/linux/x64/node_sqlite3.node
Binary file not shown.
Binary file added copilot/dist/compiled/win32/x64/kerberos.node
Binary file not shown.
Binary file added copilot/dist/compiled/win32/x64/node_sqlite3.node
Binary file not shown.
Binary file added copilot/dist/crypt32.node
Binary file not shown.
1,128 changes: 1,128 additions & 0 deletions copilot/dist/language-server.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions copilot/dist/language-server.js.map

Large diffs are not rendered by default.

Loading