Git Product home page Git Product logo

r.nvim's Introduction

r.nvim

Formatter for R.

Installation

# install.packages("remotes")
remotes::install_github("devOpifex/r.nvim")

Styles

Two styles available:

These can be defined with the .rnvim config file like so:

style=tidy

If this file is fount at the root of your project it is used, otherwise it looks for the file in your home directory (~/.rnvim), if that is not found it takes the function argument default (tidy).

Setup

You can setup for a project with setup("tidy") or setup("grk"). See the previous section to create a system-wide config.

Formatter

To use with conform.nvim.

Use it

local formatters = {
  typescript = {"eslint_d", "prettier",  },
  go = { "gofmt", },
  r = { "styler", },
}

require("conform").setup({
  formatters_by_ft = formatters,
})

{styler} is slow, increase the timeout of your format on save, e.g.:

require("conform").setup({
  format_on_save = {
    -- These options will be passed to conform.format()
    timeout_ms = 2000,
    lsp_fallback = true,
  },
})

r.nvim's People

Contributors

johncoene avatar

Stargazers

Brett Feltmate  avatar Hsieh-Ting Lin (林協霆) avatar  avatar Adam H. Sparks avatar mark padgham avatar j avatar Vivaldi Rinaldi avatar Patrick Howard avatar  avatar Colin Diesh avatar Freeman Wang avatar Jimmy Briggs avatar  avatar

Watchers

 avatar  avatar

Forkers

ssh352 sinh-x

r.nvim's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.