mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 22:28:36 +02:00
strange formater, strange case
This commit is contained in:
parent
ed7a101ba8
commit
16b3253ba8
1 changed files with 3 additions and 1 deletions
4
init.lua
4
init.lua
|
@ -744,7 +744,7 @@ require('lazy').setup({
|
|||
'<leader>f',
|
||||
function()
|
||||
-- тут не ясно почему он не использует все форматеры которе соответствуют формату файла
|
||||
require('conform').format { async = true, formatters = { 'gofumpt', 'goimports' }, lsp_format = 'fallback' }
|
||||
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||
end,
|
||||
mode = '',
|
||||
desc = '[F]ormat buffer',
|
||||
|
@ -768,6 +768,8 @@ require('lazy').setup({
|
|||
end,
|
||||
formatters_by_ft = {
|
||||
lua = { 'stylua' },
|
||||
go = { 'gofmt', 'goimports' },
|
||||
bash = { 'shfmt' },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
-- python = { "isort", "black" },
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue