Skip to content
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

Closed
jmbuhr opened this issue Aug 17, 2022 · 4 comments
Closed

[feat] add markdown language server #4

jmbuhr opened this issue Aug 17, 2022 · 4 comments

Comments

@jmbuhr
Copy link
Collaborator

jmbuhr commented Aug 17, 2022

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!

@xvzftube
Copy link

xvzftube commented Dec 4, 2022

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?

@xvzftube
Copy link

xvzftube commented Dec 4, 2022

For example

---
title: "Test document"
jupyter: python3
---

This is a Quarto website.

To learn more about Quarto websites visit <https://quarto.org/docs/websites>.

```{python}
import pandas as pd
df = pd.read_csv("diamonds.csv")
df.query('color == "E"')

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.

@jmbuhr
Copy link
Collaborator Author

jmbuhr commented Dec 4, 2022

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.

@jmbuhr jmbuhr closed this as completed Dec 4, 2022
@jmbuhr jmbuhr reopened this Dec 4, 2022
@jmbuhr
Copy link
Collaborator Author

jmbuhr commented Dec 4, 2022

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 #%%

@jmbuhr jmbuhr closed this as completed Jan 2, 2023
bkp5190 pushed a commit to bkp5190/quarto-nvim that referenced this issue Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants