changed language to english
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user