feat: configura deno_fmt como prioridade para arquivos typescript
This commit is contained in:
parent
63fc6b84b4
commit
9ec28738f5
5
init.lua
5
init.lua
|
@ -741,6 +741,9 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
formatters = {
|
||||||
|
deno_fmt = {},
|
||||||
|
},
|
||||||
notify_on_error = false,
|
notify_on_error = false,
|
||||||
format_on_save = function(bufnr)
|
format_on_save = function(bufnr)
|
||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
|
@ -765,7 +768,7 @@ require('lazy').setup({
|
||||||
--
|
--
|
||||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||||
javascript = { 'prettierd', 'prettier', 'prettierrc', stop_after_first = true },
|
javascript = { 'prettierd', 'prettier', 'prettierrc', stop_after_first = true },
|
||||||
typescript = { 'prettier', ' prettierd', 'prettierrc', stop_after_first = true },
|
typescript = { 'deno_fmt', 'prettier', ' prettierd', 'prettierrc', stop_after_first = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue