changed language to english

This commit is contained in:
2026-04-08 03:59:27 +02:00
parent 6ba53cf1e3
commit 9d279070f4
4 changed files with 47 additions and 41 deletions

View File

@@ -1,35 +1,35 @@
local M = {}
-- Hilfsfunktion zum Zeichnen des Menüs
-- Helper function to draw the menu
local function draw_menu(lines, keymaps)
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_lines(buf, 0, -1, false, lines)
vim.api.nvim_set_current_buf(buf)
-- Lokale Einstellungen für das Menü-Fenster
-- Local settings for the menu window
vim.opt_local.number = false
vim.opt_local.relativenumber = false
vim.opt_local.buftype = "nofile"
vim.opt_local.bufhidden = "wipe"
vim.opt_local.cursorline = true
-- Keymaps für dieses Menü setzen
-- Set keymaps for this menu
local opts = { buffer = buf, noremap = true, silent = true }
for key, cmd in pairs(keymaps) do
vim.keymap.set("n", key, cmd, opts)
end
end
-- Das Plugin-Untermenü (wird bei 'p' aufgerufen)
-- The plugin sub-menu (called with 'p')
function M.open_plugins_menu()
local lines = {
" PLUGINS VERWALTEN",
" MANAGE PLUGINS",
"========================",
"",
" [u] Update (Sync)",
" [i] Install",
" [a] Add (Öffne Liste)",
" [b] Zurück",
" [a] Add (Open List)",
" [b] Back",
"",
"========================",
}
@@ -37,12 +37,12 @@ function M.open_plugins_menu()
u = ":PaqSync<CR>",
i = ":PaqInstall<CR>",
a = ":edit ~/.config/nvim/lua/plugins.lua<CR>",
b = function() M.open() end, -- Geht zurück zum Hauptmenü
b = function() M.open() end, -- Returns to the main menu
}
draw_menu(lines, keys)
end
-- Das Hauptmenü
-- The main menu
function M.open()
local lines = {
" Mono VIM - 0.17",

View File

@@ -2,16 +2,16 @@
local M = {}
M.update = function()
print("MonoVim Core wird aktualisiert...")
print("Updating MonoVim Core...")
local config_path = vim.fn.stdpath("config")
local handle = io.popen("cd " .. config_path .. " && git pull 2>&1")
local result = handle:read("*a")
handle:close()
if result:find("Already up to date") then
print("MonoVim ist bereits aktuell.")
print("MonoVim is already up to date.")
else
print("Update erfolgreich! Bitte neu starten.")
print("Update successful! Please restart.")
end
end

View File

@@ -1,5 +1,5 @@
return {
"savq/paq-nvim", -- Der Manager selbst
"savq/paq-nvim", -- The manager itself
"neovim/nvim-lspconfig", -- LSP Support
"nvim-treesitter/nvim-treesitter", -- Syntax Highlighting
"williamboman/mason.nvim",