From d46606672904bfad42deaad73bdbe6789c767046 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 9 Feb 2025 20:15:51 +0000 Subject: [PATCH] feat(neovim): add supermaven copilot like plugin (#173) Add [`supermaven`](https://supermaven.com/) copilot and configure it. Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/173 Co-authored-by: Joao P Dubas Co-committed-by: Joao P Dubas --- config/nvim/lua/custom/plugins/init.lua | 10 ++++++++++ patch/kickstart.nvim/updates.patch | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/config/nvim/lua/custom/plugins/init.lua b/config/nvim/lua/custom/plugins/init.lua index 3b40caa..83800e7 100644 --- a/config/nvim/lua/custom/plugins/init.lua +++ b/config/nvim/lua/custom/plugins/init.lua @@ -264,4 +264,14 @@ return { }, }, }, + { + 'supermaven-inc/supermaven-nvim', + opts = { + keymaps = { + accept_suggestion = '', + clear_suggestion = '', + accept_word = '', + }, + }, + }, } diff --git a/patch/kickstart.nvim/updates.patch b/patch/kickstart.nvim/updates.patch index 3218611..595d1a1 100644 --- a/patch/kickstart.nvim/updates.patch +++ b/patch/kickstart.nvim/updates.patch @@ -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',