OXY2DEV / markview.nvim

An experimental markdown previewer for Neovim
Apache License 2.0
603 stars 23 forks source link

Add treesitter to installation example dependencies #17

Closed sandmuel closed 1 week ago

sandmuel commented 1 week ago

Add nvim-treesitter to plugin dependencies. This plugin does not function without treesitter, but treesitter is not in the dependencies of either installation example.

OXY2DEV commented 1 week ago

Treesitter is a built-in feature of neovim. As long as you have the parser in the right place it shouldn't matter if you have nvim-treesitter installed or not.

sandmuel commented 1 week ago

Treesitter is a built-in feature of neovim. As long as you have the parser in the right place it shouldn't matter if you have nvim-treesitter installed or not.

with the following at ./lua/plugins/markview.lua I get this error: [markview.nvim] : 'nvim-treesitter\' isn't available. Is this not the right place?

return {
    "OXY2DEV/markview.nvim",
    dependencies = {
        "nvim-tree/nvim-web-devicons", -- Used by the code bloxks
    },

    config = function ()
        require("markview").setup();
    end
}
OXY2DEV commented 1 week ago

Did you run :TSInstall markdown markdown_inline? Because without the parsers themselves it will not work.

sandmuel commented 1 week ago

Did you run :TSInstall markdown markdown_inline? Because without the parsers themselves it will not work.

TSInstall is not available unless treesitter is installed (either as a dependency of a plugin or in another lua file under ./lua/plugins)

OXY2DEV commented 1 week ago

I will add it in the next update.

I will not be merging this since the README.md is being completely rewritten.