Issue with Filetype association and CodeCompanion buffer without a file #3044
Replies: 1 comment
-
Ok so, turns out require('render-markdown').setup({
file_types = { 'markdown', 'quarto' },
}) I didn't think to try this when I initially ran into issues with the markview = {
enable = true;
settings = {
preview = {
filetypes = [ "markdown" "codecompanion" ];
ignore_buftypes = [ ];
};
};
}; Why would that be? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Not sure whether this is just me not properly understanding Neovim/Nixvim or a bug or a combination of both so hoping to get someone's more experienced perspective on this:
I've set up
codecompanion
and read in the documentation and in this GitHub issue how to configure markdown formatting for the chat buffer.I found how to configure file type associations through the
lazyLoad
triggers and while that does seem to associaterender-markdown
with thecodecompanion
file type it doesn't format on initial load. Only when manually switching the file type while in the chat buffer from:set filetype=text
back to:set filetype=codecompanion
does it work. What am I missing here?A minimum reproducible nixvim config would look something like this:
Thanks!
edit: closing brackets
Beta Was this translation helpful? Give feedback.
All reactions