hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

How to configure outline.nvim for Quarto? #80

Open marcocamilo opened 1 month ago

marcocamilo commented 1 month ago

I love this plugin and would like to know how can I configure it for .qmd files. Quarto files are a special type of markdown file which allow for mixing markdown with programming languages (Python, Julia, R, etc.)

When I run outline.nvim in a .qmd file, I get:

Messages: (outline) No response from provider when requesting symbols!

Outline works with markdown files, so how can I make it work with this type of file (which is essentially also markdown)?

hedyhli commented 1 month ago

Please take a look at the list of default options in the docs, notice:

  providers = {
    -- ...
    markdown = {
      -- List of supported ft's to use the markdown provider
      filetypes = {'markdown'},
    },
  },
marcocamilo commented 1 month ago

Thank you for the reference. However, I configured it this way:

    providers = {
      markdown = {
        filetypes = { "markdown", "quarto" },
      },
    },

but still get: Messages: (outline) No response from provider when requesting symbols!. Am I missing something?

hedyhli commented 1 month ago

Try running :OutlineStatus in a quarto buffer, it tells you which provider it ends up using.

If it doesn't show the markdown provider, you should update providers.priority so that markdown is the first provider tried.