-- 0. Leader-Taste definieren (WICHTIG für deine Keymaps) -- Muss zwingend vor Lazy geladen werden! vim.g.mapleader = " " vim.g.maplocalleader = " " -- 1. lazy.nvim vollautomatisch herunterladen (falls nicht vorhanden) local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- Lade nur die stabile Version lazypath, }) end vim.opt.rtp:prepend(lazypath) -- 2. Plugins deklarieren und laden require("lazy").setup({ -- AsciiDoc Unterstützung (Syntax, Faltung) { "habamax/vim-asciidoctor" }, -- Telescope (Deine Suchmaschine für die Lore) { "nvim-telescope/telescope.nvim", tag = "0.1.5", dependencies = { "nvim-lua/plenary.nvim" } }, -- Fugitive (Git Integration) { "tpope/vim-fugitive", cmd = { "Git", "G", "Gdiffsplit", "Gread", "Gwrite", "GBrowse" }, keys = { { "gs", "Git", desc = "Git Status" }, }, }, -- HIER FEHLTE DIE KLAMMER }) -- 3. Eigene Kommandos und Keymaps -- Erstellt ein Neovim-Kommando :BuildLore vim.api.nvim_create_user_command('BuildLore', function() -- Führt das Skript im Hintergrund aus und zeigt den Output an vim.cmd('!./build.sh') end, {}) -- Legt den Build-Vorgang auf die Taste b (Leertaste + b) vim.keymap.set('n', 'b', ':BuildLore', { noremap = true, silent = false })