Skip to content

Commit 2507fc2

Browse files
committed
feat(copilot): add option to disable Copilot suggestions
- Users can now disable Copilot suggestions via an environment variable. - A new entry has been added to the .env.template for configuration. - The default behavior of suggestions remains enabled unless specified otherwise.
1 parent a3d4ee1 commit 2507fc2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
BLINK_FUZZY_IMPLEMENTATION=
2+
COPILOT_DISABLE_SUGGESTIONS=false
23
COPILOT_MODEL_ARCHITECT=o1 # reasoning, small context
34
COPILOT_MODEL_CHEAP=gpt-4-0125-preview # quick/low-cost tasks
45
COPILOT_MODEL_CODEGEN=claude-3.7-sonnet # generation, big context

lua/plugins/copilot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ return {
2222
enabled = false,
2323
},
2424
suggestion = {
25-
enabled = true,
25+
enabled = vim.fn.env_get("COPILOT_DISABLE_SUGGESTIONS") ~= "true",
2626
auto_trigger = true,
2727
keymap = {
2828
accept = "<c-]>",

0 commit comments

Comments
 (0)