refactor(LSP): use prettier over prettierd
This commit is contained in:
parent
b968af5b9c
commit
f302eb85b0
2 changed files with 7 additions and 7 deletions
|
@ -13,8 +13,7 @@ function M.on_attach(client, bufnr)
|
|||
-- Enable completion triggered by <c-x><c-o>
|
||||
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
|
||||
if config.lsp.format_on_save and not auto_format_lock then
|
||||
auto_format_lock = true -- just run autocommand once
|
||||
if config.lsp.format_on_save then
|
||||
local format_filetypes = ''
|
||||
if vim.tbl_islist(config.lsp.format_on_save) then
|
||||
for _, ft in pairs(config.lsp.format_on_save) do
|
||||
|
|
|
@ -18,11 +18,12 @@ if not config_opts.default_cosmic_sources then
|
|||
prefer_local = 'node_modules/.bin',
|
||||
}),
|
||||
null_ls.builtins.diagnostics.markdownlint,
|
||||
null_ls.builtins.formatting.prettierd.with({
|
||||
env = {
|
||||
PRETTIERD_LOCAL_PRETTIER_ONLY = 1,
|
||||
},
|
||||
}),
|
||||
-- null_ls.builtins.formatting.prettierd.with({
|
||||
-- env = {
|
||||
-- PRETTIERD_LOCAL_PRETTIER_ONLY = 1,
|
||||
-- },
|
||||
-- }),
|
||||
null_ls.builtins.formatting.prettier,
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.code_actions.gitsigns,
|
||||
}, config_opts.sources or {})
|
||||
|
|
Loading…
Add table
Reference in a new issue