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, + }, + }, +}