Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

YAML file truncating when formating #1609

Answered by caquino
caquino asked this question in Q&A
Discussion options

You must be logged in to vote

@cerebrl sorry for not posting an update here before, let me explain what I learned and what I did.

When you add any import to lazy.lua, like for example the one for prettier lazyvim.plugins.extras.formatting.prettier it is just a pre-configured plugin and some base defaults.
The path I took was to not have lazyvim.plugins.extras.formatting.prettier and to manually add a plugin configuration on plugins/ folder.

I've created a file under plugins/null-ls.lua with the following content:

return {
  {
    "williamboman/mason.nvim",
    opts = function(_, opts)
      table.insert(opts.ensure_installed, "prettier")
    end,
  },
  {
    "jose-elias-alvarez/null-ls.nvim",
    opts = function(_, opts

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@caquino
Comment options

Comment options

You must be logged in to vote
6 replies
@caquino
Comment options

@caquino
Comment options

@cerebrl
Comment options

@caquino
Comment options

Answer selected by caquino
@cerebrl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants