Closed suntsu42 closed 5 months ago
I did some more digging and tried to access part of the mkdnflow in lua.
local mkdnflow = require('mkdnflow')
print(mkdnflow)
print(mkdnflow.tables)
The output looks like this:
mkdnflow.tables seems not to be initialized.
I'm guessing that i miss something obvious, but i can't see what the problem is.
After some more digging, i finally found the reason.
I did not configure treesitter properly. I now configured treesitter with the following settings
require 'nvim-treesitter.configs'.setup {
ensure_installed = { "javascript", "typescript", "c", "lua" },
auto_install = true,
}
When i then started a markdown file in neovim, treesitter did download something and all the mkdnflow commands now work. It shows the following message (Even i don't fully understand what exactly is installed for markdown)
[nvim-treesitter] [1/1] Treesitter parser for markdown has been installed
I just wasn't aware of this dependency.
When i try to execute a command (e.g. ":MkdnCreateLink" or ":MkdnTable") the followng error is shown:
I've boiled down my neovim config to exclude any other problems. I just download pleanry and mkdnflow. No other configuration is loaded.
It looks like everything is properly loaded![image](https://github.com/jakewvincent/mkdnflow.nvim/assets/1768336/fbe81d75-d52a-417b-8793-f962c56b4fa5)
I've also tested with neovim preview and did test on linux and windows and always got the same error.
Any idea what the reason for this error is?