Personal LazyVim config: vimtex, LTeX, Vale, prose settings
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
-- Copilot is installed via the LazyVim extra, but disabled by default.
|
||||
-- Use <leader>ua to toggle Copilot inline suggestions and blink/cmp source.
|
||||
|
||||
vim.g.copilot_enabled = false
|
||||
|
||||
return {
|
||||
-- Inline suggestions are set up but not auto-triggered by default
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = false,
|
||||
},
|
||||
panel = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Disable copilot as a blink completion source by default
|
||||
{
|
||||
"saghen/blink.cmp",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
opts.sources = opts.sources or {}
|
||||
opts.sources.providers = opts.sources.providers or {}
|
||||
opts.sources.providers.copilot = opts.sources.providers.copilot or {
|
||||
name = "copilot",
|
||||
module = "blink-copilot",
|
||||
score_offset = 100,
|
||||
async = true,
|
||||
}
|
||||
opts.sources.providers.copilot.enabled = function()
|
||||
return vim.g.copilot_enabled == true
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user