Org Mode Agenda to new tab, show tabbar if >1 tabs

This commit is contained in:
Lüdecke Sascha
2026-09-17 09:07:34 +02:00
parent 955ceb2f61
commit 8258f31107
5 changed files with 34 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ dashboard.section.header.val = vim.split(adjustedLogo, '\n')
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('a', 'Agenda & TODOs', '<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>'),

View File

@@ -44,7 +44,8 @@ vim.keymap.set('n', '<leader>of',
end,
{ desc = "Open org folder" })
vim.keymap.set('n', '<leader>a', ':silent Org agenda t<cr>', { desc = "Org Agenda" })
vim.keymap.set('n', '<leader>i', ':silent Org capture i<cr>', { desc = "Org Interruption" })
vim.keymap.set('n', '<leader>Q', ':silent Org capture t<cr>', { desc = "Org new TODO"})
vim.keymap.set('n', '<leader>q', ':silent Org capture i<cr>', { desc = "Org new interruption" })
-- toggle colorscheme between dark and light
vim.keymap.set('n', '<leader>m', function()

View File

@@ -108,8 +108,20 @@ if vim.loop.os_gethostname() == 'slaptop' then
'wgsl_analyzer',
}
else
-- local project_library_path = "$HOME/onedrive/Development/sm-rosenheim/frontend/node_modules"
-- local project_library_path = 'C:\\Users\\260057\\onedrive\\Development\\sm-rosenheim\\frontend\\node_modules'
local project_library_path = 'C:/Users/260057/onedrive/Development/sm-rosenheim/frontend/node_modules'
local cmd = { "ngserver", "--stdio", "--tsProbeLocations", project_library_path, "--ngProbeLocations",
project_library_path }
vim.lsp.config('angularls', {
cmd = cmd,
})
-- any lsp which should be enabled in all situations
enable_this_lsp = {
'bashls',
'angularls',
'emmylua_ls',
}
end

View File

@@ -5,8 +5,9 @@
---------------------------------------------------
-- this is specific for a machine
-- // TODO.2026-09-17 - improve windows and onedrive check
local ORG_BASE_FOLDER = '~/Documents/Eigene (Briefe etc.)/org'
if vim.loop.os_gethostname() != 'slaptop' then
if vim.loop.os_gethostname() ~= 'slaptop' then
ORG_BASE_FOLDER = '~/OneDrive/Desktop/orgfiles'
end
sl_opt = {
@@ -45,7 +46,7 @@ vim.opt.splitbelow = true -- open new vertical split bottom
vim.opt.splitright = true -- open new horizontal splits right
vim.opt.termguicolors = true -- enable 24-bit RGB color in the TUI
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
vim.opt.showtabline = 0 -- never show top line with tabs, not used anyways
vim.opt.showtabline = 1 -- never show top line with tabs, not used anyways
vim.opt.winborder = 'rounded' -- UI borders are rounded
-- Searching

View File

@@ -192,7 +192,7 @@ require("lazy").setup({
config = function()
-- Setup orgmode
require('orgmode').setup({
win_split_mode = 'auto',
win_split_mode = '0tabnew',
org_log_done = false,
-- cf: https://github.com/nvim-orgmode/orgmode/blob/master/docs/configuration.org#mappings
mappings = {
@@ -263,6 +263,21 @@ require("lazy").setup({
end
},
-- -- org-super-agenda try it 2026-07-21
-- https://github.com/hamidi-dev/org-super-agenda.nvim
-- {
-- 'hamidi-dev/org-super-agenda.nvim',
-- dependencies = {
-- 'nvim-orgmode/orgmode', -- required
-- { 'lukas-reineke/headlines.nvim', config = true }, -- optional nicety
-- },
-- config = function()
-- require('org-super-agenda').setup({
-- org_directories = sl_opt.org_agenda_files, -- recurse for *.org
-- })
-- end
-- },
-- comfortable table editing, esp. used in orgmode
{ 'dhruvasagar/vim-table-mode' },