replace copilot with supermaven

This commit is contained in:
Peter Tillemans 2025-03-06 12:55:35 +01:00
parent 5c41c92563
commit 0384623573

View file

@ -343,19 +343,17 @@ require('lazy').setup({
{ -- Useful plugin to show you pending keybinds. { -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim', 'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter' event = 'VeryLazy',
config = function() -- This is the function that runs, AFTER loading opts = {},
require('which-key').setup() keys = {
{
-- Document existing key chains '<leader>?',
require('which-key').register { function()
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' }, require('which-key').show { global = false }
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
}
end, end,
desc = 'Buffer Local Keymaps (which-key)',
},
}, -- Sets the loading event to 'VimEnter'
}, },
-- NOTE: Plugins can specify dependencies. -- NOTE: Plugins can specify dependencies.
@ -694,12 +692,12 @@ require('lazy').setup({
}, },
}, },
{ -- copilot -- { -- copilot
'zbirenbaum/copilot.lua', -- 'zbirenbaum/copilot.lua',
cmd = 'Copilot', -- cmd = 'Copilot',
event = 'InsertEnter', -- event = 'InsertEnter',
opts = {}, -- opts = {},
}, -- },
{ -- Autocompletion { -- Autocompletion
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
@ -914,6 +912,13 @@ require('lazy').setup({
end, 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 -- 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 -- 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. -- put them in the right spots if you want.