mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
set js/ts format priority
This commit is contained in:
@@ -6,9 +6,7 @@ return {
|
|||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<leader>f',
|
'<leader>f',
|
||||||
function()
|
function() require('conform').format { async = true, lsp_format = 'fallback' } end,
|
||||||
require('conform').format { async = true, lsp_format = 'fallback' }
|
|
||||||
end,
|
|
||||||
mode = '',
|
mode = '',
|
||||||
desc = '[F]ormat buffer',
|
desc = '[F]ormat buffer',
|
||||||
},
|
},
|
||||||
@@ -35,7 +33,10 @@ return {
|
|||||||
-- python = { "isort", "black" },
|
-- python = { "isort", "black" },
|
||||||
--
|
--
|
||||||
-- 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", stop_after_first = true },
|
javascript = { 'eslint_d', 'prettierd', 'prettier' },
|
||||||
|
javascriptreact = { 'eslint_d', 'prettierd', 'prettier' },
|
||||||
|
typescript = { 'eslint_d', 'prettierd', 'prettier' },
|
||||||
|
typescriptreact = { 'eslint_d', 'prettierd', 'prettier' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user