Fix obsidian.nvim workspace

This commit is contained in:
Martin Pander
2026-02-13 21:33:50 +01:00
parent f7d8e728ff
commit 0012b07304
2 changed files with 13 additions and 2 deletions

View File

@@ -82,7 +82,8 @@ in
extraLuaConfig = ''
_G.is_work = ${if cfg.workMode then "true" else "false"}
_G.is_home = ${if pkgs.stdenv.isDarwin then "true" else "false"}
_G.is_mac = ${if pkgs.stdenv.isDarwin then "true" else "false"}
_G.is_private_nixos = ${if !cfg.workMode && pkgs.stdenv.isLinux then "true" else "false"}
require('base')
require('keymaps')

View File

@@ -377,7 +377,7 @@ dap.configurations.zig = {
},
}
if _G.is_home then
if _G.is_mac then
workspaces = {
{
name = "privat",
@@ -410,6 +410,16 @@ if _G.is_work then
daily_notes = {}
end
if _G.is_private_nixos then
workspaces = {
{
name = "tech",
path = "~/notes",
},
}
daily_notes = {}
end
require("obsidian").setup({
workspaces = workspaces,
templates = {