feat(r_language_server): add quarto filetype (#3617)

[Quarto](https://quarto.org/) is a (more or less new) scientific and
technical publishing system. There is also a [quarto
filetype](https://github.com/neovim/neovim/blob/master/runtime/ftplugin/quarto.vim)
which is very similar to [rmarkdown](https://rmarkdown.rstudio.com/) but
has some extensions.

The quarto filetype can also be used with python and julia. The
r_language_server detects code chunks / blocks that use the R
programming language and runs only on them.
This commit is contained in:
mutlusun 2025-02-14 07:18:55 +01:00 committed by GitHub
parent 6c17f8656f
commit 28012ac4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
return {
default_config = {
cmd = { 'R', '--no-echo', '-e', 'languageserver::run()' },
filetypes = { 'r', 'rmd' },
filetypes = { 'r', 'rmd', 'quarto' },
root_dir = function(fname)
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) or vim.loop.os_homedir()
end,