Skip to content

Commit 16b3253

Browse files
khaydarovkhaydarov
authored andcommitted
strange formater, strange case
1 parent ed7a101 commit 16b3253

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ require('lazy').setup({
744744
'<leader>f',
745745
function()
746746
-- тут не ясно почему он не использует все форматеры которе соответствуют формату файла
747-
require('conform').format { async = true, formatters = { 'gofumpt', 'goimports' }, lsp_format = 'fallback' }
747+
require('conform').format { async = true, lsp_format = 'fallback' }
748748
end,
749749
mode = '',
750750
desc = '[F]ormat buffer',
@@ -768,6 +768,8 @@ require('lazy').setup({
768768
end,
769769
formatters_by_ft = {
770770
lua = { 'stylua' },
771+
go = { 'gofmt', 'goimports' },
772+
bash = { 'shfmt' },
771773
-- Conform can also run multiple formatters sequentially
772774
-- python = { "isort", "black" },
773775
--

0 commit comments

Comments
 (0)