mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-26 23:28:33 +02:00
autoforamater for golang
This commit is contained in:
parent
373c400fa0
commit
ed7a101ba8
1 changed files with 2 additions and 1 deletions
3
init.lua
3
init.lua
|
@ -743,7 +743,8 @@ require('lazy').setup({
|
|||
{
|
||||
'<leader>f',
|
||||
function()
|
||||
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||
-- тут не ясно почему он не использует все форматеры которе соответствуют формату файла
|
||||
require('conform').format { async = true, formatters = { 'gofumpt', 'goimports' }, lsp_format = 'fallback' }
|
||||
end,
|
||||
mode = '',
|
||||
desc = '[F]ormat buffer',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue