Skip to content
Discussion options

You must be logged in to vote

I continued to read the documentation and found out I mistook specific settings as inline JSON configuration. They differ, yet bear an uncanny resemblance.

require('lspconfig').ruff.setup {
  init_options = {
    -- This is the inline JSON configuration.
    configuration = {
      format = {
        ["quote-style"] = "single"
      }
    }
    -- This is the specific settings.
    settings = {
      format = {
          preview = true
      }
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by otakutyrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant