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',
|
'<leader>f',
|
||||||
function()
|
function()
|
||||||
-- тут не ясно почему он не использует все форматеры которе соответствуют формату файла
|
-- тут не ясно почему он не использует все форматеры которе соответствуют формату файла
|
||||||
require('conform').format { async = true, formatters = { 'gofumpt', 'goimports' }, lsp_format = 'fallback' }
|
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||||
end,
|
end,
|
||||||
mode = '',
|
mode = '',
|
||||||
desc = '[F]ormat buffer',
|
desc = '[F]ormat buffer',
|
||||||
|
@ -768,6 +768,8 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
|
go = { 'gofmt', 'goimports' },
|
||||||
|
bash = { 'shfmt' },
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
-- python = { "isort", "black" },
|
-- python = { "isort", "black" },
|
||||||
--
|
--
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue