Update null-ls.lua

change 'formatting.prettier.with({disabled_filetypes: {}})' to  'formatting.prettier.with({disabled_filetypes = {}}) to correct' for correct syntax. The original usage gives an error.
This commit is contained in:
gamerilla 2023-01-01 17:59:59 -05:00 committed by GitHub
parent c3382dbdc9
commit 819e8303d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ null_ls.setup({
-- setup formatters & linters
sources = {
-- to disable file types use
-- "formatting.prettier.with({disabled_filetypes: {}})" (see null-ls docs)
-- "formatting.prettier.with({disabled_filetypes = {}})" (see null-ls docs)
formatting.prettier, -- js/ts formatter
formatting.stylua, -- lua formatter
diagnostics.eslint_d.with({ -- js/ts linter