-
This may be more of an nvim question than an obsidian.nvim question. Anyway, after the latest update is no longer following links. Any hints on how I might track down why this is happening? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
try running |
Beta Was this translation helpful? Give feedback.
-
I changed to ~/.local/share/nvim/lazy/obsidian.nvim and ran the above command. The resulting checkhealt had all OK. Return in normal mode moves the cursor to the next line. Does that help? FWIW I'm running an nvim I built from source yesterday. However, I earlier tried the release version of nvim and got the same results. I also tried adding a callback section to my config. The keymap I added there was not in the buffer, either. |
Beta Was this translation helpful? Give feedback.
-
vim.api.nvim_create_autocmd("User", {
pattern = "ObsidianNoteEnter",
callback = function(ev)
vim.keymap.set("n", "<CR>", require"obsidian.builtin".smart_action, {
buffer = ev.buf,
expr = true,
desc = "Obsidian Smart Action",
})
end,
}) or like the callback style in https://github.com/obsidian-nvim/obsidian.nvim/wiki/Keymaps |
Beta Was this translation helpful? Give feedback.
-
@marchyman d30a98a tell me if this fix it. |
Beta Was this translation helpful? Give feedback.
Thanks for the note on keymap... you may be able to tell I'm a neovim novice and still have a lot to learn. That said...
Neither of the above helped. But in more playing I see that the location of my vault -- in iCloud accessed via a symbolic link in my mac documents folder -- has something to do with it. I opened a different vault that lives on my local disk and it works as expected.
I'll play some to see if I can figure out what is going on because I'm curious and might learn something.
Thanks again.