You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my question is can i migrate this to the event object in my config:
return {
"epwalsh/obsidian.nvim",
version="*", -- recommended, use latest release instead of latest commitlazy=true,
ft="markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:event= {
-- BufEnter <-- PLACE ABOVE CODE HERE?
},
-- Optional, configure key mappings. These are the defaults. If you don't want to set any keymappings this-- way then set 'mappings = {}'.mappings= {
-- Overrides the 'gf' mapping to work on markdown/wiki links within your vault.
["gf"] = {
action=function()
returnrequire("obsidian").util.gf_passthrough()
end,
opts= { noremap=false, expr=true, buffer=true },
},
-- Toggle check-boxes.
["<leader>ch"] = {
action=function()
returnrequire("obsidian").util.toggle_checkbox()
end,
opts= { buffer=true },
},
-- Smart action depending on context, either follow link or toggle checkbox.
["<cr>"] = {
action=function()
returnrequire("obsidian").util.smart_action()
end,
opts= { buffer=true, expr=true },
}
},
dependencies= {
-- Required."nvim-lua/plenary.nvim",
-- see below for full list of optional dependencies 👇
},
opts= {
workspaces= {
{
name="personal",
path="/Users/<user>/path/to/vault",
},
{
name="work",
path="/Users/<user>/worknotes",
},
},
},
}
note that this config doesn't work as is. I need to comment out the `workspaces.personal" because that path doesn't exist on my work machine and as a result I get errors in neovim
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i have a workflow that looks like this:
my question is can i migrate this to the
eventobject in my config:note that this config doesn't work as is. I need to comment out the `workspaces.personal" because that path doesn't exist on my work machine and as a result I get errors in neovim
Beta Was this translation helpful? Give feedback.
All reactions