update nvim maybe

This commit is contained in:
dexta.de
2026-08-13 20:57:43 +02:00
parent b4208e2ddf
commit 3b77bc122f
-41
View File
@@ -1,44 +1,3 @@
-- 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 = {
{ "<leader>gs", "<cmd>Git<cr>", desc = "Git Status" },
},
}, -- HIER FEHLTE DIE KLAMMER
})
-- 3. Eigene Kommandos und Keymaps -- 3. Eigene Kommandos und Keymaps
-- Erstellt ein Neovim-Kommando :BuildLore -- Erstellt ein Neovim-Kommando :BuildLore
vim.api.nvim_create_user_command('BuildLore', function() vim.api.nvim_create_user_command('BuildLore', function()