-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] add markdown language server #4
Comments
I am not sure if this is related, but I have a coc.nvim https://github.com/neoclide/coc.nvim setup. I have coc-r-lsp and pyright installed. Would having a Markdown language server allow for syntax highlighting within code blocks? |
For example
I would like python autocompletion when I am in the python block, but I would not want to say the entire document should be treated as a python file.
|
You already get syntax highlighting with treesitter. See https://github.com/quarto-dev/quarto-nvim#recommended-plugins. For a disccusion on autocompletion read #2 For the reasons outlined in the issue above it is not as straighforward, but I think the plugin mentioned at the end has the greatest potential to become what we need (AckslD/nvim-FeMaco.lua#20). But I havn't finished my PR for this feature. For now, my workflow still uses RStudio with large computational notebooks with plots and other output, neovim with plain R and python code and neovim with quarto documents without much code. |
You can also experiment with my personal dotfiles, which include a bit more than just the kickstarter config I made: https://github.com/jmbuhr/.dotfiles/tree/main/nvim/.config/nvim Like jumping between code blocks in plain R and python files separated by |
Excited for: https://github.com/microsoft/vscode/tree/main/extensions/markdown-language-features/server
Once this goes live, we should add it to the recommended nvim configuration!
The text was updated successfully, but these errors were encountered: