diff --git a/.config/nvim/lua/plugins/copilot.lua b/.config/nvim/lua/plugins/copilot.lua new file mode 100644 index 0000000..01e16ed --- /dev/null +++ b/.config/nvim/lua/plugins/copilot.lua @@ -0,0 +1,41 @@ +return { + 'zbirenbaum/copilot.lua', + dependencies = { + 'hrsh7th/nvim-cmp', + -- 'zbirenbaum/copilot-cmp', + }, + event = 'InsertEnter', + + opts = { + no_tab_map = true, + assume_mapped = true, + suggestion = { + enabled = true, + auto_trigger = true, + debounce = 75, + keymap = { + accept = '', + next = '', + prev = '', + dismiss = '', + }, + layout = { + position = 'bottom', + ratio = 0.4, + }, + }, + panel = { + enabled = true, + auto_refresh = true, + keymap = { + jump_prev = '[[', + jump_next = ']]', + accept = '', + }, + }, + }, + + config = function(_, opts) + require('copilot').setup(opts) + end, +}