Renormalized + itronb adjustments

This commit is contained in:
Lüdecke Sascha
2026-03-23 15:09:06 +01:00
parent 2b47d7a9cd
commit fd5c73f099
25 changed files with 2143 additions and 2102 deletions

View File

@@ -1,3 +1,10 @@
-- adjust proxy on Windows
if vim.loop.os_environ().OS == 'Windows_NT' then
-- TODO move out of the tree and do not check in
vim.fn.setenv("http_proxy", "http://10.167.16.21:80")
vim.fn.setenv("https_proxy", "http://10.167.16.21:80")
end
-- load configurations files from lua/*
require('filetype')
require('options')

View File

@@ -64,8 +64,7 @@ local padding = math.floor((logoWidth - greetingWidth) / 2)
-- Generate spaces for padding
local paddedGreeting = string.rep(' ', padding) .. greeting
local userName = "You work as '" .. vim.env.USER .. "'."
local userName = "You work as '" .. (vim.env.USER or vim.env.USERNAME) .. "'."
-- Calculate padding for centering the username
local userNameWidth = #userName
@@ -81,17 +80,25 @@ local margin = string.rep('\n', marginBottom * 5)
local adjustedLogo = logo .. '\n' .. paddedGreeting .. '\n\n' .. userNamePadded .. '\n' .. margin
dashboard.section.header.val = vim.split(adjustedLogo, '\n')
dashboard.section.buttons.val = {
dashboard.button('d', ' Diary Entry', '<cmd>Diary<CR>'),
local buttons = {
dashboard.button('n', ' New file', ':ene <BAR> startinsert <CR>'),
dashboard.button('s', ' Settings', '<cmd>WorkspacesOpen config-nvim<CR>'),
dashboard.button('t', '[] Todo List', '<cmd>Org agenda t<CR>'),
dashboard.button('u', '󱐥 Update plugins', '<cmd>Lazy update<CR>'),
dashboard.button('w', ' Workspaces', '<cmd>WorkspacesOpen<CR>'),
dashboard.button('q', '󰤆 Quit', '<cmd>qa<CR>'),
}
if vim.loop.os_gethostname() == 'ccflow' then
table.insert(buttons, 1,
dashboard.button('d', ' Diary Entry', '<cmd>Diary<CR>'))
end
dashboard.section.buttons.val = buttons
-- dashboard.section.footer.val = greeting
vim.api.nvim_create_autocmd('User', {
pattern = 'LazyVimStarted',
desc = 'Add Alpha dashboard footer',

View File

@@ -1,3 +1,29 @@
---------------------------------------------------
--
-- Global settings
--
---------------------------------------------------
-- global
sl_opt = {}
-- this is specific for a machine
if vim.loop.os_gethostname() == 'ccflow' then
sl_opt = {
org_agenda_files = '~/Documents/Eigene (Briefe etc.)/org/*.org',
org_default_notes_file = '~/Documents/Eigene (Briefe etc.)/org/refile.org',
org_roam_folder = '~/Documents/Eigene (Briefe etc.)/org/roam',
}
else
sl_opt = {
org_agenda_files = '~/OneDrive - Stadt Rosenheim/Desktop/orgfiles/*.org',
org_default_notes_file = '~/OneDrive - Stadt Rosenheim/Desktop/orgfiles/refile.org',
org_roam_folder = '~/OneDrive - Stadt Rosenheim/Desktop/orgfiles/roam',
}
end
---------------------------------------------------
--
-- Some general setup taken from some tutorial

View File

@@ -195,8 +195,8 @@ require("lazy").setup({
},
-- org_agenda_files = '~/orgfiles/**/*',
-- org_default_notes_file = '~/orgfiles/refile.org',
org_agenda_files = '~/Documents/Eigene (Briefe etc.)/org/*.org',
org_default_notes_file = '~/Documents/Eigene (Briefe etc.)/org/refile.org',
org_agenda_files = sl_opt.org_agenda_files,
org_default_notes_file = sl_opt.org_default_notes_file,
org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' },
org_custom_exports = {
f = {
@@ -234,7 +234,7 @@ require("lazy").setup({
"chipsenkbeil/org-roam.nvim",
config = function()
require("org-roam").setup({
directory = "~/Documents/Eigene (Briefe etc.)/org/roam",
directory = sl_opt.org_roam_folder,
-- optional
-- org_files = {
-- "~/another_org_dir",
@@ -308,16 +308,17 @@ require("lazy").setup({
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "diff", "go", "rust", "python" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
lazy = false,
-- config = function()
-- local configs = require("nvim-treesitter.configs")
--
-- configs.setup({
-- ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "diff", "go", "rust", "python" },
-- sync_install = false,
-- highlight = { enable = true },
-- indent = { enable = true },
-- })
-- end
},
-- lualine statusline plugin