Renormalized + itronb adjustments
This commit is contained in:
7
init.lua
7
init.lua
@@ -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/*
|
-- load configurations files from lua/*
|
||||||
require('filetype')
|
require('filetype')
|
||||||
require('options')
|
require('options')
|
||||||
|
|||||||
@@ -64,8 +64,7 @@ local padding = math.floor((logoWidth - greetingWidth) / 2)
|
|||||||
-- Generate spaces for padding
|
-- Generate spaces for padding
|
||||||
local paddedGreeting = string.rep(' ', padding) .. greeting
|
local paddedGreeting = string.rep(' ', padding) .. greeting
|
||||||
|
|
||||||
|
local userName = "You work as '" .. (vim.env.USER or vim.env.USERNAME) .. "'."
|
||||||
local userName = "You work as '" .. vim.env.USER .. "'."
|
|
||||||
|
|
||||||
-- Calculate padding for centering the username
|
-- Calculate padding for centering the username
|
||||||
local userNameWidth = #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
|
local adjustedLogo = logo .. '\n' .. paddedGreeting .. '\n\n' .. userNamePadded .. '\n' .. margin
|
||||||
dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
||||||
|
|
||||||
dashboard.section.buttons.val = {
|
local buttons = {
|
||||||
dashboard.button('d', ' Diary Entry', '<cmd>Diary<CR>'),
|
|
||||||
dashboard.button('n', ' New file', ':ene <BAR> startinsert <CR>'),
|
dashboard.button('n', ' New file', ':ene <BAR> startinsert <CR>'),
|
||||||
dashboard.button('s', ' Settings', '<cmd>WorkspacesOpen config-nvim<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('u', ' Update plugins', '<cmd>Lazy update<CR>'),
|
||||||
dashboard.button('w', ' Workspaces', '<cmd>WorkspacesOpen<CR>'),
|
dashboard.button('w', ' Workspaces', '<cmd>WorkspacesOpen<CR>'),
|
||||||
dashboard.button('q', ' Quit', '<cmd>qa<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
|
-- dashboard.section.footer.val = greeting
|
||||||
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('User', {
|
vim.api.nvim_create_autocmd('User', {
|
||||||
pattern = 'LazyVimStarted',
|
pattern = 'LazyVimStarted',
|
||||||
desc = 'Add Alpha dashboard footer',
|
desc = 'Add Alpha dashboard footer',
|
||||||
|
|||||||
@@ -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
|
-- Some general setup taken from some tutorial
|
||||||
|
|||||||
@@ -195,8 +195,8 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
-- org_agenda_files = '~/orgfiles/**/*',
|
-- org_agenda_files = '~/orgfiles/**/*',
|
||||||
-- org_default_notes_file = '~/orgfiles/refile.org',
|
-- org_default_notes_file = '~/orgfiles/refile.org',
|
||||||
org_agenda_files = '~/Documents/Eigene (Briefe etc.)/org/*.org',
|
org_agenda_files = sl_opt.org_agenda_files,
|
||||||
org_default_notes_file = '~/Documents/Eigene (Briefe etc.)/org/refile.org',
|
org_default_notes_file = sl_opt.org_default_notes_file,
|
||||||
org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' },
|
org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' },
|
||||||
org_custom_exports = {
|
org_custom_exports = {
|
||||||
f = {
|
f = {
|
||||||
@@ -234,7 +234,7 @@ require("lazy").setup({
|
|||||||
"chipsenkbeil/org-roam.nvim",
|
"chipsenkbeil/org-roam.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("org-roam").setup({
|
require("org-roam").setup({
|
||||||
directory = "~/Documents/Eigene (Briefe etc.)/org/roam",
|
directory = sl_opt.org_roam_folder,
|
||||||
-- optional
|
-- optional
|
||||||
-- org_files = {
|
-- org_files = {
|
||||||
-- "~/another_org_dir",
|
-- "~/another_org_dir",
|
||||||
@@ -308,16 +308,17 @@ require("lazy").setup({
|
|||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
lazy = false,
|
||||||
local configs = require("nvim-treesitter.configs")
|
-- 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" },
|
-- configs.setup({
|
||||||
sync_install = false,
|
-- ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "diff", "go", "rust", "python" },
|
||||||
highlight = { enable = true },
|
-- sync_install = false,
|
||||||
indent = { enable = true },
|
-- highlight = { enable = true },
|
||||||
})
|
-- indent = { enable = true },
|
||||||
end
|
-- })
|
||||||
|
-- end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- lualine statusline plugin
|
-- lualine statusline plugin
|
||||||
|
|||||||
Reference in New Issue
Block a user