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

Can we get a default filetype for Rmarkdown *.Rmd? #169

Open
danjenson opened this issue Sep 27, 2020 · 1 comment
Open

Can we get a default filetype for Rmarkdown *.Rmd? #169

danjenson opened this issue Sep 27, 2020 · 1 comment

Comments

@danjenson
Copy link

I tried to specify a preferred interpreter but it looks like it errors out with a nil value here: https://github.com/hkupty/iron.nvim/blob/746f220f941158c6d75de3213d56aeeb0c917986/lua/iron/init.lua#L77

@hkupty
Copy link
Collaborator

hkupty commented Jan 5, 2021

Hi @danjenson, I'm sorry I couldn't look at your issue before.

The way iron is currently implemented, since there's no definition for Rmd files, it can't set a preferred one. Of course that's suboptimal.

One way you could do this yourself is to add the following to your init.vim:

lua << EOF
require("iron.fts").rmd = {
  <name_of_rmd_repl> = {
    command = {"<executable>", "<argument>", ...}
  }
}
EOF

There are plenty of examples and most languages/repls are super simple, but if you have any questions, please don't refrain from asking - once again, sorry for the delay.

That seems hackish to me and I intend to make configuration simpler, after my ongoing cleanup PR (#174).

Best regards,
Henry

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