mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(prettierd): added an extra for prettierd with null-ls
This commit is contained in:
parent
75299da24c
commit
aa8bae07ae
1 changed files with 17 additions and 0 deletions
17
lua/lazyvim/plugins/extras/formatting/prettier.lua
Normal file
17
lua/lazyvim/plugins/extras/formatting/prettier.lua
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = {
|
||||||
|
"prettierd",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
local nls = require("null-ls")
|
||||||
|
table.insert(opts.sources, nls.builtins.formatting.prettierd)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue