From 67095a7ceb64f822fa3f06e54beefe0d1e939e14 Mon Sep 17 00:00:00 2001 From: aceaiaid <“aceaiaid@gmail.com”> Date: Wed, 17 Apr 2024 13:23:12 -0700 Subject: [PATCH] add copilot --- lazyvim.json | 1 + lua/plugins/copilot.lua | 46 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 lua/plugins/copilot.lua diff --git a/lazyvim.json b/lazyvim.json index 331e50e..4d76632 100644 --- a/lazyvim.json +++ b/lazyvim.json @@ -1,5 +1,6 @@ { "extras": [ + "lazyvim.plugins.extras.coding.copilot", "lazyvim.plugins.extras.lang.docker", "lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.java", diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua new file mode 100644 index 0000000..5c706f2 --- /dev/null +++ b/lua/plugins/copilot.lua @@ -0,0 +1,46 @@ +return { + "zbirenbaum/copilot.lua", + cmd = "Copilot", + build = ":Copilot auth", + opts = { + suggestion = { + enabled = true, + auto_trigger = true, + debounce = 75, + keymap = { + accept = "", + accept_word = false, + accept_line = false, + next = "", + prev = "", + dismiss = "", + }, + }, + panel = { + enabled = true, + auto_refresh = true, + keymap = { + jump_prev = false, -- "[[" + jump_next = false, -- "]]" + accept = false, -- "", + refresh = false, -- "gr", + open = false, -- "", + }, + layout = { + position = "bottom", + ratio = 0.4, + }, + }, + filetypes = { + markdown = true, + help = true, + yaml = false, + gitcommit = false, + gitrebase = false, + hgcommit = false, + svn = false, + cvs = false, + ["."] = false, + }, + }, +}