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
3 changes: 3 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"_workspace.ignoreDir": ["deps"]
}
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Run all test files
# test: deps/mini.nvim
test:
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"

# Run test from file at `$FILE` environment variable
test_file: deps/mini.nvim
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"

# Download 'mini.nvim' to use its 'mini.test' testing module
# deps/mini.nvim:
# @mkdir deps
# git clone --filter=blob:none https://github.com/echasnovski/mini.nvim $@
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ require('copilot').setup({
auto_trigger = false,
hide_during_completion = true,
debounce = 75,
trigger_on_accept = true,
keymap = {
accept = "<M-l>",
accept_word = false,
Expand Down Expand Up @@ -171,6 +172,7 @@ require("copilot.panel").refresh()

When `auto_trigger` is `true`, copilot starts suggesting as soon as you enter insert mode.
When `auto_trigger` is `false`, use the `next`, `prev` or `accept` keymap to trigger copilot suggestion.
When `trigger_on_accept` is `false`, the keypress will be passed to the buffer as-is, instead of triggering completion.

To toggle auto trigger for the current buffer, use `require("copilot.suggestion").toggle_auto_trigger()`.

Expand Down
245 changes: 0 additions & 245 deletions lua/copilot/api.lua

This file was deleted.

Loading