From 8258f31107ef36afaa349e41cec99dce12c4a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BCdecke=20Sascha?= Date: Thu, 17 Sep 2026 09:07:34 +0200 Subject: [PATCH] Org Mode Agenda to new tab, show tabbar if >1 tabs --- lua/config/alpha-nvim.lua | 2 +- lua/keybindings.lua | 3 ++- lua/lsp.lua | 12 ++++++++++++ lua/options.lua | 5 +++-- lua/plugins.lua | 17 ++++++++++++++++- 5 files changed, 34 insertions(+), 5 deletions(-) diff --git a/lua/config/alpha-nvim.lua b/lua/config/alpha-nvim.lua index 84373df..f53992a 100644 --- a/lua/config/alpha-nvim.lua +++ b/lua/config/alpha-nvim.lua @@ -83,7 +83,7 @@ dashboard.section.header.val = vim.split(adjustedLogo, '\n') local buttons = { dashboard.button('n', ' New file', ':ene startinsert '), dashboard.button('s', ' Settings', 'WorkspacesOpen config-nvim'), - dashboard.button('t', ' Todo List', 'Org agenda t'), + dashboard.button('a', ' Agenda & TODOs', 'Org agenda t'), dashboard.button('u', '󱐥 Update plugins', 'Lazy update'), dashboard.button('w', '󱌣 Workspaces', 'WorkspacesOpen'), dashboard.button('q', '󰤆 Quit', 'qa'), diff --git a/lua/keybindings.lua b/lua/keybindings.lua index db41b20..9f5af01 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -44,7 +44,8 @@ vim.keymap.set('n', 'of', end, { desc = "Open org folder" }) vim.keymap.set('n', 'a', ':silent Org agenda t', { desc = "Org Agenda" }) -vim.keymap.set('n', 'i', ':silent Org capture i', { desc = "Org Interruption" }) +vim.keymap.set('n', 'Q', ':silent Org capture t', { desc = "Org new TODO"}) +vim.keymap.set('n', 'q', ':silent Org capture i', { desc = "Org new interruption" }) -- toggle colorscheme between dark and light vim.keymap.set('n', 'm', function() diff --git a/lua/lsp.lua b/lua/lsp.lua index e4a1e3e..41e1a11 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -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 diff --git a/lua/options.lua b/lua/options.lua index 1c8b0fa..64014d9 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -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 diff --git a/lua/plugins.lua b/lua/plugins.lua index c95daad..dc8ca60 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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' },