From 5cadf14de5b18fa46c05721aa05c927082052929 Mon Sep 17 00:00:00 2001 From: itsscb Date: Wed, 2 Apr 2025 22:41:02 +0200 Subject: [PATCH] feat: add gh copilot todo: keymap to toggle gh copilot --- init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index a1beed6..c30cf77 100644 --- a/init.lua +++ b/init.lua @@ -90,7 +90,6 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now! :) --]] - -- Set as the leader key -- See `:help mapleader` -- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used) @@ -245,6 +244,16 @@ vim.opt.rtp:prepend(lazypath) -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ + { + + 'github/copilot.vim', + config = function() + vim.g.copilot_enabled = true + vim.g.copilot_no_tab_map = false + vim.g.copilot_tab_fallback = '' + vim.g.copilot_no_status_bar = true + end, + }, -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically