Fixed: Fastfetch, Added: Avante Nvim

This commit is contained in:
DerGrumpf 2025-09-10 13:41:20 +02:00
parent 982f2aed1e
commit f31ba5ad4d
5 changed files with 71 additions and 7 deletions

View File

@ -77,6 +77,8 @@ cmp.setup({
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "avante_commands" },
{ name = "avante_mentions" },
}, {
{ name = "buffer" },
{ name = "path" },
@ -149,6 +151,58 @@ vim.keymap.set("n", "<leader>fg", telescope.live_grep, { desc = "Telescope live
vim.keymap.set("n", "<leader>fb", telescope.buffers, { desc = "Telescope buffers" })
vim.keymap.set("n", "<leader>fh", telescope.help_tags, { desc = "Telescope help tags" })
-- Avante.nvim Setup
require("avante").setup({
-- Provider configuration
provider = "ollama",
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-sonnet-4-20250514",
},
-- File selector settings
file_selector = {
provider = "telescope",
},
-- Other settings
instructions_file = "avante.md",
-- Keymaps will be set automatically
mappings = {
ask = "<leader>aa",
edit = "<leader>ae",
refresh = "<leader>ar",
--- @class AvanteConflictMappings
diff = {
ours = "co",
theirs = "ct",
none = "c0",
both = "cb",
next = "]x",
prev = "[x",
},
jump = {
next = "]]",
prev = "[[",
},
},
})
-- Img-clip setup for image pasting
require("img-clip").setup({
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true,
},
})
-- Render-markdown setup
require("render-markdown").setup({
file_types = { "markdown", "Avante" },
})
-- Styling
require("catppuccin").setup({
flavour = "mocha",

View File

@ -25,7 +25,15 @@
alpha-nvim
cheatsheet-nvim
toggleterm-nvim
avante-nvim # AI Stuff
# AI Stuff
avante-nvim
plenary-nvim
nui-nvim
dressing-nvim
nvim-web-devicons
img-clip-nvim
render-markdown-nvim
# Add conform.nvim as a custom plugin
(pkgs.vimUtils.buildVimPlugin {
@ -68,5 +76,8 @@
nil
rust-analyzer
python3Packages.python-lsp-server
# Avante
curl
cargo
];
}

View File

@ -169,7 +169,7 @@
"paddingLeft": 2,
"symbol": "circle"
},
"break,
"break",
]
}

View File

@ -52,4 +52,5 @@
userEmail = "p.keier@beyerstedt-it.de";
};
home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
}

View File

@ -27,8 +27,6 @@
'';
};
home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
programs.fish = {
enable = true;
interactiveShellInit = ''