chezmoi/private_dot_config/nvim/lua/plugins/ia.lua

55 lines
1.4 KiB
Lua
Raw Permalink Normal View History

2025-07-16 22:24:58 +00:00
-- NOTES: disabled copilot it sucks ! FUCK AI
if true then return {} end
return {
{
"zbirenbaum/copilot.lua",
config = function()
require("config.lazy").setup({
panel = {
enabled = false, -- false for copilot-cmp
auto_refresh = false,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "bottom", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
enabled = false, -- false for copilot-cmp
auto_trigger = true,
hide_during_completion = true,
debounce = 75,
keymap = {
accept = "<C-J>",
accept_word = false,
accept_line = false,
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
},
filetypes = {
yaml = true,
markdown = false,
help = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
copilot_node_command = 'node', -- Node.js version must be > 18.x
server_opts_overrides = {},
})
end,
},
}