mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
prefer local prettierc by default
This commit is contained in:
parent
12818a6cb4
commit
ef02f5d86e
1 changed files with 5 additions and 1 deletions
|
|
@ -89,7 +89,11 @@ return {
|
|||
opts = function(_, opts)
|
||||
local nls = require("null-ls")
|
||||
opts.sources = opts.sources or {}
|
||||
table.insert(opts.sources, nls.builtins.formatting.prettier)
|
||||
|
||||
table.insert(opts.sources, nls.builtins.formatting.prettier.with({
|
||||
// See: https://github.com/nvimtools/none-ls.nvim/blob/main/doc/BUILTIN_CONFIG.md#using-local-executables
|
||||
prefer_local = true
|
||||
}))
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue