Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: "djLint" integration (linter, formatter) #6

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

yaegassy
Copy link
Owner

Overview

Tools

Add support for djlint integration (linter and formatter).

DEMO

"htmldjango.djlint.enable": true (default false)

coc-htmldjango-djlint-integration.mp4

Summary

Add options

  • htmldjango.formatting.provider: Provider for formatting. Possible options include 'djhtml', 'djlint', and 'none', default: "djhtml"
  • htmldjango.djlint.commandPath: The custom path to the djlint (Absolute path), default: ""
  • htmldjango.djlint.enable: Enable djLint (diagnostics), default: false
  • htmldjango.djlint.lintOnOpen: Lint file on opening, default: true
  • htmldjango.djlint.lintOnChange: Lint file on change, default: true
  • htmldjango.djlint.lintOnSave: Lint file on save, default: true

Add commands

  • htmldjango.djlint.format

builtin install

Change htmldjango.builtin.installTools commands to install djlint with it.

:CocComannd htmldjango.builtin.installTools

Thanks

@yaegassy yaegassy merged commit 6e4a484 into master Sep 22, 2021
@yaegassy yaegassy deleted the feat/djlint-support branch September 29, 2021 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant