Added prettier

This commit is contained in:
Eduard Urbach 2023-07-29 21:33:28 +02:00
parent 2425836f35
commit 54f8e49a5c
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
3 changed files with 15 additions and 10 deletions

View File

@ -11,7 +11,6 @@ require("lazy").setup({
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import any extras modules here
{ import = "lazyvim.plugins.extras.formatting.prettier" },
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },

View File

@ -1,9 +0,0 @@
return {
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"gofumpt",
"prettierd",
},
},
}

View File

@ -0,0 +1,15 @@
return {
{
"williamboman/mason.nvim",
opts = function(_, opts)
table.insert(opts.ensure_installed, "prettierd")
end,
},
{
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
local nls = require("null-ls")
table.insert(opts.sources, nls.builtins.formatting.prettierd)
end,
},
}