nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.53k stars 20.79k forks source link

stevearc/conform plugin format not working for golang #891

Closed ndzuki closed 4 months ago

ndzuki commented 4 months ago

Describe the bug

I have install gofumpt with Mason and update init.lua. But open a main.go file, the formatter not work.

To Reproduce

:MasonInstall gofumpt

update init.lua ` formatters_by_ft = { lua = { 'stylua' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" },

    -- You can use a sub-list to tell conform to run *until* a formatter
    -- is found.
    -- javascript = { { "prettierd", "prettier" } },
    go = { 'gofumpt' },
  },
},`

Desktop

Neovim Version

NVIM v0.9.5 Build type: Release LuaJIT 2.1.1692716794