Closed nlif-m closed 1 year ago
The real intent behind setting the cursor position within a node was to mimic the functionality of org-roam
but it doesn't work properly yet, so this is removed in my local development branch and changes will be pushed soon.
emacs has a goto-char
function which takes a number and positions the cursor at that character, this number which is passed as argument to goto-char
function is stored in org-roam database, currently I have not implemented the goto-char
equivalent for this project. You can comment that line out for time being.
In future there will be an implementation for it, however that is not a priority at the moment.
Thanks for the clarification, I wish you good development
Hello @SyedFasiuddin, First, thank you for your plugin.
I am using your plugin with this nvim using lazy.nvim instead of packer, since packer is not maintained anymore.
My issue is that when I call
org_roam.org_roam_node_find
I get an errorE5108: Error executing lua: ...ff/.local/share/nvim/lazy/org-roam.nvim/lua/org-roam.lua:111: Cursor position outside buffer
. it's not fatal, since I hit enter twice and .org file is opened, but is's distracting.I tried to fix this error and it worked when I commented out line 111 and after this all start working without errors.
I'm not really familiar with the vim api, so the question is, does this break something now or maybe break something further in your vision for the development of this project?
If not, I can submit a pull request with this change.
This is my reproducible nvim lua config