Fix obsidian.nvim workspace
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user