Fix obsidian.nvim workspace
This commit is contained in:
@@ -82,7 +82,8 @@ in
|
|||||||
|
|
||||||
extraLuaConfig = ''
|
extraLuaConfig = ''
|
||||||
_G.is_work = ${if cfg.workMode then "true" else "false"}
|
_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('base')
|
||||||
require('keymaps')
|
require('keymaps')
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ dap.configurations.zig = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if _G.is_home then
|
if _G.is_mac then
|
||||||
workspaces = {
|
workspaces = {
|
||||||
{
|
{
|
||||||
name = "privat",
|
name = "privat",
|
||||||
@@ -410,6 +410,16 @@ if _G.is_work then
|
|||||||
daily_notes = {}
|
daily_notes = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if _G.is_private_nixos then
|
||||||
|
workspaces = {
|
||||||
|
{
|
||||||
|
name = "tech",
|
||||||
|
path = "~/notes",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
daily_notes = {}
|
||||||
|
end
|
||||||
|
|
||||||
require("obsidian").setup({
|
require("obsidian").setup({
|
||||||
workspaces = workspaces,
|
workspaces = workspaces,
|
||||||
templates = {
|
templates = {
|
||||||
|
|||||||
Reference in New Issue
Block a user