Disable LLM triggers by default
This commit is contained in:
parent
3daccea308
commit
bba4fbbbb1
2 changed files with 14 additions and 1 deletions
|
@ -77,4 +77,17 @@ vim.keymap.set('n', '<leader><tab>d', '<cmd>tabclose<cr>', { desc = 'Close Tab'
|
||||||
vim.keymap.set('n', '<leader><tab>]', '<cmd>tabnext<cr>', { desc = 'Next Tab' })
|
vim.keymap.set('n', '<leader><tab>]', '<cmd>tabnext<cr>', { desc = 'Next Tab' })
|
||||||
vim.keymap.set('n', '<leader><tab>[', '<cmd>tabprevious<cr>', { desc = 'Previous Tab' })
|
vim.keymap.set('n', '<leader><tab>[', '<cmd>tabprevious<cr>', { desc = 'Previous Tab' })
|
||||||
|
|
||||||
|
-- Toggle LLM Suggestions
|
||||||
|
vim.keymap.set('n', '<leader>tt', function()
|
||||||
|
local cp = require 'copilot.suggestion'
|
||||||
|
|
||||||
|
cp.toggle_auto_trigger()
|
||||||
|
|
||||||
|
if vim.b.copilot_suggestion_auto_trigger then
|
||||||
|
vim.notify 'Suggestions Enabled'
|
||||||
|
else
|
||||||
|
vim.notify 'Suggestions Disabled'
|
||||||
|
end
|
||||||
|
end, { desc = '[T]oggle LLM Suggestion Auto-[T]rigger' })
|
||||||
|
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -25,7 +25,7 @@ return {
|
||||||
},
|
},
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
auto_trigger = true,
|
auto_trigger = false,
|
||||||
debounce = 75,
|
debounce = 75,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = '<M-y>',
|
accept = '<M-y>',
|
||||||
|
|
Loading…
Reference in a new issue