mirror of
https://github.com/fred-drake/neovim.git
synced 2026-06-05 14:59:28 -05:00
Swapped Supermaven for AugmentCode
This commit is contained in:
+57
-1
@@ -60,6 +60,16 @@
|
|||||||
group = "Database";
|
group = "Database";
|
||||||
icon = "";
|
icon = "";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
__unkeyed-1 = "<leader>a";
|
||||||
|
group = "Avante";
|
||||||
|
icon = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
__unkeyed-1 = "<leader>A";
|
||||||
|
group = "AugmentCode";
|
||||||
|
icon = "";
|
||||||
|
}
|
||||||
|
|
||||||
# Keys with custom icons / labels
|
# Keys with custom icons / labels
|
||||||
{
|
{
|
||||||
@@ -192,7 +202,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
# Normal mode
|
# Interactive mode
|
||||||
{
|
{
|
||||||
mode = "i";
|
mode = "i";
|
||||||
key = "jk";
|
key = "jk";
|
||||||
@@ -205,6 +215,14 @@
|
|||||||
action = "<CMD>noh<CR><ESC>";
|
action = "<CMD>noh<CR><ESC>";
|
||||||
options.desc = "Normal mode and clear highlight";
|
options.desc = "Normal mode and clear highlight";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = "i";
|
||||||
|
key = "<c-y>";
|
||||||
|
action = "<CMD>call augment#Accept()<CR>";
|
||||||
|
options.desc = "Accept AugmentCode suggestion";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Normal mode
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<ESC>";
|
key = "<ESC>";
|
||||||
@@ -613,5 +631,43 @@
|
|||||||
action = "<CMD>BaconLoad<CR>:w<CR>:BaconNext<CR>";
|
action = "<CMD>BaconLoad<CR>:w<CR>:BaconNext<CR>";
|
||||||
options.desc = "Next Bacon Issue";
|
options.desc = "Next Bacon Issue";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# AugmentCode
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>As";
|
||||||
|
action = "<CMD>Augment status<CR>";
|
||||||
|
options.desc = "AugmentCode Status";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>Ae";
|
||||||
|
action = "<CMD>Augment enable<CR>";
|
||||||
|
options.desc = "AugmentCode Enable";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>Ad";
|
||||||
|
action = "<CMD>Augment disable<CR>";
|
||||||
|
options.desc = "AugmentCode Disable";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>Ac";
|
||||||
|
action = "<CMD>Augment chat<CR>";
|
||||||
|
options.desc = "Chat with AugmentCode";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>An";
|
||||||
|
action = "<CMD>Augment chat-new<CR>";
|
||||||
|
options.desc = "Start a new chat";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>At";
|
||||||
|
action = "<CMD>Augment chat-toggle<CR>";
|
||||||
|
options.desc = "Toggle chat window";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ in
|
|||||||
name = "buffer";
|
name = "buffer";
|
||||||
keywordLength = 3;
|
keywordLength = 3;
|
||||||
}
|
}
|
||||||
{name = "supermaven";}
|
|
||||||
{name = "luasnip";}
|
{name = "luasnip";}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
+12
-21
@@ -9,38 +9,29 @@
|
|||||||
};
|
};
|
||||||
nvimSkipModule = "outline.providers.norg";
|
nvimSkipModule = "outline.providers.norg";
|
||||||
};
|
};
|
||||||
|
augment-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "augment-nvim";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "augmentcode";
|
||||||
|
repo = "augment.vim";
|
||||||
|
rev = "e14cbe9fdc33dff1a4b55c0fc858b94f5e833862";
|
||||||
|
hash = "sha256-VzHFmt8uOsZEYqIGAbwSrmGLlOfTnL7QvsRB5yMpSG0=";
|
||||||
|
};
|
||||||
|
nvimSkipModule = "outline.providers.norg";
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
extraPlugins = with pkgs; [
|
extraPlugins = with pkgs; [
|
||||||
vimPlugins.supermaven-nvim # AI code completion
|
|
||||||
vimPlugins.vim-dadbod # DB client
|
vimPlugins.vim-dadbod # DB client
|
||||||
vimPlugins.vim-dadbod-completion # DB completion
|
vimPlugins.vim-dadbod-completion # DB completion
|
||||||
vimPlugins.vim-dadbod-ui # DB UI
|
vimPlugins.vim-dadbod-ui # DB UI
|
||||||
vimPlugins.vim-tmux-navigator # tmux navigation
|
vimPlugins.vim-tmux-navigator # tmux navigation
|
||||||
outline-nvim
|
outline-nvim # Document outliner
|
||||||
|
augment-nvim # AI code completion
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
require("telescope").load_extension('harpoon')
|
require("telescope").load_extension('harpoon')
|
||||||
|
|
||||||
require("supermaven-nvim").setup({
|
|
||||||
keymaps = {
|
|
||||||
accept_suggestion = "<Tab>",
|
|
||||||
clear_suggestion = "<C-]>",
|
|
||||||
accept_word = "<C-j>",
|
|
||||||
},
|
|
||||||
ignore_filetypes = { cpp = true }, -- or { "cpp", }
|
|
||||||
color = {
|
|
||||||
suggestion_color = "#ffffff",
|
|
||||||
cterm = 244,
|
|
||||||
},
|
|
||||||
log_level = "info", -- set to "off" to disable logging completely
|
|
||||||
disable_inline_completion = false, -- disables inline completion for use with cmp
|
|
||||||
disable_keymaps = false, -- disables built in keymaps for more manual control
|
|
||||||
condition = function()
|
|
||||||
return false
|
|
||||||
end -- condition to check for stopping supermaven, `true` means to stop supermaven when the condition is true.
|
|
||||||
})
|
|
||||||
|
|
||||||
require("notify").setup({
|
require("notify").setup({
|
||||||
background_colour = "#000000",
|
background_colour = "#000000",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user