From 0384623573adad89f5881a76b1b87959793f5049 Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Thu, 6 Mar 2025 12:55:35 +0100 Subject: [PATCH] replace copilot with supermaven --- init.lua | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/init.lua b/init.lua index 7b124d2..034ff3b 100644 --- a/init.lua +++ b/init.lua @@ -343,19 +343,17 @@ require('lazy').setup({ { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', - event = 'VimEnter', -- Sets the loading event to 'VimEnter' - config = function() -- This is the function that runs, AFTER loading - require('which-key').setup() - - -- Document existing key chains - require('which-key').register { - ['c'] = { name = '[C]ode', _ = 'which_key_ignore' }, - ['d'] = { name = '[D]ocument', _ = 'which_key_ignore' }, - ['r'] = { name = '[R]ename', _ = 'which_key_ignore' }, - ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, - ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, - } - end, + event = 'VeryLazy', + opts = {}, + keys = { + { + '?', + function() + require('which-key').show { global = false } + end, + desc = 'Buffer Local Keymaps (which-key)', + }, + }, -- Sets the loading event to 'VimEnter' }, -- NOTE: Plugins can specify dependencies. @@ -694,12 +692,12 @@ require('lazy').setup({ }, }, - { -- copilot - 'zbirenbaum/copilot.lua', - cmd = 'Copilot', - event = 'InsertEnter', - opts = {}, - }, + -- { -- copilot + -- 'zbirenbaum/copilot.lua', + -- cmd = 'Copilot', + -- event = 'InsertEnter', + -- opts = {}, + -- }, { -- Autocompletion 'hrsh7th/nvim-cmp', @@ -914,6 +912,13 @@ require('lazy').setup({ end, }, + { -- the fastest code completion in the west + 'supermaven-inc/supermaven-nvim', + config = function() + require('supermaven-nvim').setup {} + end, + }, + -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and -- put them in the right spots if you want.