replace copilot with supermaven
This commit is contained in:
parent
5c41c92563
commit
0384623573
1 changed files with 24 additions and 19 deletions
43
init.lua
43
init.lua
|
@ -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' },
|
end,
|
||||||
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
desc = 'Buffer Local Keymaps (which-key)',
|
||||||
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
},
|
||||||
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
}, -- Sets the loading event to 'VimEnter'
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- 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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue