Org Mode Agenda to new tab, show tabbar if >1 tabs
This commit is contained in:
@@ -83,7 +83,7 @@ dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
|||||||
local buttons = {
|
local buttons = {
|
||||||
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('a', ' Agenda & TODOs', '<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>'),
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ vim.keymap.set('n', '<leader>of',
|
|||||||
end,
|
end,
|
||||||
{ desc = "Open org folder" })
|
{ desc = "Open org folder" })
|
||||||
vim.keymap.set('n', '<leader>a', ':silent Org agenda t<cr>', { desc = "Org Agenda" })
|
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
|
-- toggle colorscheme between dark and light
|
||||||
vim.keymap.set('n', '<leader>m', function()
|
vim.keymap.set('n', '<leader>m', function()
|
||||||
|
|||||||
12
lua/lsp.lua
12
lua/lsp.lua
@@ -108,8 +108,20 @@ if vim.loop.os_gethostname() == 'slaptop' then
|
|||||||
'wgsl_analyzer',
|
'wgsl_analyzer',
|
||||||
}
|
}
|
||||||
else
|
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
|
-- any lsp which should be enabled in all situations
|
||||||
enable_this_lsp = {
|
enable_this_lsp = {
|
||||||
|
'bashls',
|
||||||
|
'angularls',
|
||||||
'emmylua_ls',
|
'emmylua_ls',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,8 +5,9 @@
|
|||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
|
||||||
-- this is specific for a machine
|
-- this is specific for a machine
|
||||||
|
-- // TODO.2026-09-17 - improve windows and onedrive check
|
||||||
local ORG_BASE_FOLDER = '~/Documents/Eigene (Briefe etc.)/org'
|
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'
|
ORG_BASE_FOLDER = '~/OneDrive/Desktop/orgfiles'
|
||||||
end
|
end
|
||||||
sl_opt = {
|
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.splitright = true -- open new horizontal splits right
|
||||||
vim.opt.termguicolors = true -- enable 24-bit RGB color in the TUI
|
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.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
|
vim.opt.winborder = 'rounded' -- UI borders are rounded
|
||||||
|
|
||||||
-- Searching
|
-- Searching
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ require("lazy").setup({
|
|||||||
config = function()
|
config = function()
|
||||||
-- Setup orgmode
|
-- Setup orgmode
|
||||||
require('orgmode').setup({
|
require('orgmode').setup({
|
||||||
win_split_mode = 'auto',
|
win_split_mode = '0tabnew',
|
||||||
org_log_done = false,
|
org_log_done = false,
|
||||||
-- cf: https://github.com/nvim-orgmode/orgmode/blob/master/docs/configuration.org#mappings
|
-- cf: https://github.com/nvim-orgmode/orgmode/blob/master/docs/configuration.org#mappings
|
||||||
mappings = {
|
mappings = {
|
||||||
@@ -263,6 +263,21 @@ require("lazy").setup({
|
|||||||
end
|
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
|
-- comfortable table editing, esp. used in orgmode
|
||||||
{ 'dhruvasagar/vim-table-mode' },
|
{ 'dhruvasagar/vim-table-mode' },
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user