aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormutlusun <mutlusun@users.noreply.github.com>2025-02-14 07:18:55 +0100
committerGitHub <noreply@github.com>2025-02-14 14:18:55 +0800
commit28012ac4e3bd7a71cc81894468e40857e094309f (patch)
tree085dcaaf875efb7fb2e56203db2144f2c8762d11
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar.gz
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar.bz2
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar.lz
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar.xz
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.tar.zst
nvim-lspconfig-28012ac4e3bd7a71cc81894468e40857e094309f.zip
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.
-rw-r--r--lua/lspconfig/configs/r_language_server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/r_language_server.lua b/lua/lspconfig/configs/r_language_server.lua
index 5ed5d667..4fbbd211 100644
--- a/lua/lspconfig/configs/r_language_server.lua
+++ b/lua/lspconfig/configs/r_language_server.lua
@@ -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,