feat(neovim): add supermaven copilot like plugin (#173)

Add [`supermaven`](https://supermaven.com/) copilot and configure it.

Reviewed-on: #173
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
João Paulo Dubas 2025-02-09 20:15:51 +00:00 committed by João Paulo Dubas
parent 17094f53ca
commit d466066729
2 changed files with 22 additions and 4 deletions

View File

@ -264,4 +264,14 @@ return {
},
},
},
{
'supermaven-inc/supermaven-nvim',
opts = {
keymaps = {
accept_suggestion = '<C-y>',
clear_suggestion = '<C-d>',
accept_word = '<C-j>',
},
},
},
}

View File

@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index 4eae8e7..b9f7554 100644
index 4eae8e7..f2609ec 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
@ -134,7 +134,15 @@ index 4eae8e7..b9f7554 100644
require('lspconfig')[server_name].setup(server)
end,
},
@@ -844,12 +926,19 @@ require('lazy').setup({
@@ -830,6 +912,7 @@ require('lazy').setup({
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
group_index = 0,
},
+ { name = 'supermavem' },
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },
@@ -844,12 +927,19 @@ require('lazy').setup({
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'folke/tokyonight.nvim',
@ -155,7 +163,7 @@ index 4eae8e7..b9f7554 100644
-- You can configure highlights by doing something like:
vim.cmd.hi 'Comment gui=none'
@@ -902,7 +991,39 @@ require('lazy').setup({
@@ -902,7 +992,39 @@ require('lazy').setup({
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
@ -196,7 +204,7 @@ index 4eae8e7..b9f7554 100644
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
@@ -932,17 +1053,17 @@ require('lazy').setup({
@@ -932,17 +1054,17 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',