Skip to content

Commit

Permalink
nvim+efm: configure rustywind
Browse files Browse the repository at this point in the history
  • Loading branch information
jc00ke committed Jun 9, 2021
1 parent b52fa3c commit dbe3144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .config/efm-langserver/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ tools:
lint-command: 'yamllint -f parsable -'
lint-stdin: true

tailwind-class-sort: &tailwind-class-sort
format-command: 'rustywind --stdin'
format-stdin: true

languages:
elixir:
- <<: *mix_credo
html:
- <<: *tailwind-class-sort
lua:
- <<: *lua-lua-format
sh:
Expand Down
2 changes: 1 addition & 1 deletion .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ lspconfig.elixirls.setup({

lspconfig.efm.setup({
capabilities = capabilities,
filetypes = {"elixir", "lua", "sh", "yaml"},
filetypes = {"elixir", "html", "lua", "sh", "yaml"},
init_options = {documentFormatting = true},
on_attach = on_attach
})
Expand Down

0 comments on commit dbe3144

Please sign in to comment.