change completion plugin
this was done to support dynamically enabling AI autosuggestion and is disabled by default
This commit is contained in:
parent
ec750a0e89
commit
6e2a88508c
7 changed files with 114 additions and 126 deletions
|
|
@ -12,8 +12,15 @@ return {
|
|||
config = function()
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = true, auto_refresh = true },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
|
||||
vim.g.copilot_autocomplete_enabled = false
|
||||
|
||||
vim.api.nvim_create_user_command("CopilotToggleAutocomplete", function()
|
||||
vim.g.copilot_autocomplete_enabled = not vim.g.copilot_autocomplete_enabled
|
||||
print("Copilot autocompletion: " .. tostring(vim.g.copilot_autocomplete_enabled))
|
||||
end, { desc = "Toggle Copilot autocompletion" })
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
@ -62,6 +69,7 @@ return {
|
|||
},
|
||||
}
|
||||
end,
|
||||
|
||||
keys = {
|
||||
{
|
||||
"<leader>at",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue