Kakoune: Add rustfmt to filetype

Created on 22 Mar 2019  路  5Comments  路  Source: mawww/kakoune

Steps

Need to manually add to config from what is shown in wiki https://github.com/mawww/kakoune/wiki/Languages.

hook global WinSetOption filetype=rust %{
  set window formatcmd 'rustfmt'
}

Outcome

Nothing but need to manually add formatcmd

Expected

Rust filetype are expected to use rustfmt by default. Possible to add it to https://github.com/mawww/kakoune?

Most helpful comment

Same could be done for gofmt I think. These 2 tools are standards in their respective ecosystem.

All 5 comments

Same could be done for gofmt I think. These 2 tools are standards in their respective ecosystem.

I think that c-family can test if either clang-format or another supported formatter is installed and set formatcmd accordingly.

@Delapouite not sure about gofmt being standard, there's also goimports 馃槈

This is now fixed.

@Delapouite @andreyorst I had already added for rust, feel free to add one for go and c. (I need to fix the wiki as well)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vbauerster picture vbauerster  路  3Comments

valerdi picture valerdi  路  4Comments

abitofalchemy picture abitofalchemy  路  3Comments

alexherbo2 picture alexherbo2  路  3Comments

alexherbo2 picture alexherbo2  路  3Comments