Fixed: Fastfetch, Added: Avante Nvim
This commit is contained in:
		@@ -77,6 +77,8 @@ cmp.setup({
 | 
				
			|||||||
	sources = cmp.config.sources({
 | 
						sources = cmp.config.sources({
 | 
				
			||||||
		{ name = "nvim_lsp" },
 | 
							{ name = "nvim_lsp" },
 | 
				
			||||||
		{ name = "luasnip" },
 | 
							{ name = "luasnip" },
 | 
				
			||||||
 | 
							{ name = "avante_commands" },
 | 
				
			||||||
 | 
							{ name = "avante_mentions" },
 | 
				
			||||||
	}, {
 | 
						}, {
 | 
				
			||||||
		{ name = "buffer" },
 | 
							{ name = "buffer" },
 | 
				
			||||||
		{ name = "path" },
 | 
							{ name = "path" },
 | 
				
			||||||
@@ -107,9 +109,9 @@ lspconfig.nil_ls.setup({ capabilities = capabilities })
 | 
				
			|||||||
lspconfig.rust_analyzer.setup({ capabilities = capabilities })
 | 
					lspconfig.rust_analyzer.setup({ capabilities = capabilities })
 | 
				
			||||||
lspconfig.pylsp.setup({ capabilities = capabilities })
 | 
					lspconfig.pylsp.setup({ capabilities = capabilities })
 | 
				
			||||||
lspconfig.stylelint_lsp.setup({
 | 
					lspconfig.stylelint_lsp.setup({
 | 
				
			||||||
		cmd = { "stylelint-lsp", "--stdio" },
 | 
						cmd = { "stylelint-lsp", "--stdio" },
 | 
				
			||||||
		filetypes = { "css", "scss", "rasi" },
 | 
						filetypes = { "css", "scss", "rasi" },
 | 
				
			||||||
		capabilities = vim.lsp.protocol.make_client_capabilities(),
 | 
						capabilities = vim.lsp.protocol.make_client_capabilities(),
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Conform
 | 
					-- Conform
 | 
				
			||||||
@@ -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>fb", telescope.buffers, { desc = "Telescope buffers" })
 | 
				
			||||||
vim.keymap.set("n", "<leader>fh", telescope.help_tags, { desc = "Telescope help tags" })
 | 
					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
 | 
					-- Styling
 | 
				
			||||||
require("catppuccin").setup({
 | 
					require("catppuccin").setup({
 | 
				
			||||||
	flavour = "mocha",
 | 
						flavour = "mocha",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,15 @@
 | 
				
			|||||||
      alpha-nvim
 | 
					      alpha-nvim
 | 
				
			||||||
      cheatsheet-nvim
 | 
					      cheatsheet-nvim
 | 
				
			||||||
      toggleterm-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
 | 
					      # Add conform.nvim as a custom plugin
 | 
				
			||||||
      (pkgs.vimUtils.buildVimPlugin {
 | 
					      (pkgs.vimUtils.buildVimPlugin {
 | 
				
			||||||
@@ -68,5 +76,8 @@
 | 
				
			|||||||
    nil
 | 
					    nil
 | 
				
			||||||
    rust-analyzer
 | 
					    rust-analyzer
 | 
				
			||||||
    python3Packages.python-lsp-server
 | 
					    python3Packages.python-lsp-server
 | 
				
			||||||
 | 
					    # Avante
 | 
				
			||||||
 | 
					    curl
 | 
				
			||||||
 | 
					    cargo
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -169,7 +169,7 @@
 | 
				
			|||||||
            "paddingLeft": 2,
 | 
					            "paddingLeft": 2,
 | 
				
			||||||
            "symbol": "circle"
 | 
					            "symbol": "circle"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
		"break, 
 | 
							"break", 
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,4 +52,5 @@
 | 
				
			|||||||
    userEmail = "p.keier@beyerstedt-it.de";
 | 
					    userEmail = "p.keier@beyerstedt-it.de";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,8 +27,6 @@
 | 
				
			|||||||
    '';
 | 
					    '';
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  programs.fish = {
 | 
					  programs.fish = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    interactiveShellInit = ''
 | 
					    interactiveShellInit = ''
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user