Skip to content

configuring home directory |need help| #220

Closed Answered by lambtho12
Cruising0904 asked this question in Q&A
Discussion options

You must be logged in to vote

What you want is something like that in your init.lua:

 -- Zettelkasten directory
  local home = vim.fn.expand("~/.dotfiles/wiki")
  local journal = home .. "/journal"

  require("telekasten").setup({
    -- Define directories
    home = home,
    dailies = journal .. "/daily",
    weeklies = journal .. "/weekly",
    templates = home .. "/templates",
    image_subdir = home .. "/img",
  })

The line local home = vim.fn.expand("~/.dotfiles/wiki") is where you define your actual wiki home. As you see, all other options are just subdirectory of that root dir.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@lambtho12
Comment options

@Cruising0904
Comment options

@lambtho12
Comment options

Answer selected by Cruising0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants