From 19553585044e08ab6e41d3be408d58ee51c7ead3 Mon Sep 17 00:00:00 2001 From: Ali Shahid <41078534+shaeinst@users.noreply.github.com> Date: Mon, 14 Feb 2022 23:50:51 +0545 Subject: [PATCH 1/2] add neovim integration --- docs/src/docs/integrations.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/docs/integrations.md b/docs/src/docs/integrations.md index a94c536..b186ded 100644 --- a/docs/src/docs/integrations.md +++ b/docs/src/docs/integrations.md @@ -72,6 +72,11 @@ Ensure djLint is installed in your global python, or on your `PATH`. [GitHub repository](https://github.com/monosans/djlint-vscode) +## neovim +djLint can use used as formatter in neovim using null-ls plugin. +https://github.com/jose-elias-alvarez/null-ls.nvim/ +[config](https://github.com/shaeinst/roshnivim/blob/5d991fcfa1b8f865f9653a98c6d97a829d4a2add/lua/plugins/null-ls_nvim.lua#L84-L91) example + ## coc.nvim https://www.npmjs.com/package/coc-htmldjango From 5c94618fa8890a1f2ab96dd55a36acf5d3a7f6ec Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Mon, 14 Feb 2022 14:49:47 -0600 Subject: [PATCH 2/2] updated a few things --- docs/src/docs/integrations.md | 22 ++++++++++++++++------ docs/src/ru/docs/integrations.md | 20 +++++++++++++++++--- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/docs/src/docs/integrations.md b/docs/src/docs/integrations.md index b186ded..cfd2d11 100644 --- a/docs/src/docs/integrations.md +++ b/docs/src/docs/integrations.md @@ -68,15 +68,25 @@ Ensure djLint is installed in your global python, or on your `PATH`. ## Visual Studio Code -[Marketplace page](https://marketplace.visualstudio.com/items?itemName=monosans.djlint) +::: content -[GitHub repository](https://github.com/monosans/djlint-vscode) +- [Marketplace page](https://marketplace.visualstudio.com/items?itemName=monosans.djlint) +- [GitHub repository](https://github.com/monosans/djlint-vscode) + ::: ## neovim -djLint can use used as formatter in neovim using null-ls plugin. -https://github.com/jose-elias-alvarez/null-ls.nvim/ -[config](https://github.com/shaeinst/roshnivim/blob/5d991fcfa1b8f865f9653a98c6d97a829d4a2add/lua/plugins/null-ls_nvim.lua#L84-L91) example + +djLint can use used as formatter in neovim using the ``null-ls`` plugin. + +::: content + +- [GitHub repository](https://github.com/jose-elias-alvarez/null-ls.nvim/) +- [Config example](https://github.com/shaeinst/roshnivim/blob/5d991fcfa1b8f865f9653a98c6d97a829d4a2add/lua/plugins/null-ls_nvim.lua#L84-L91) + ::: ## coc.nvim -https://www.npmjs.com/package/coc-htmldjango +::: content + +- [npm package](https://www.npmjs.com/package/coc-htmldjango) + ::: \ No newline at end of file diff --git a/docs/src/ru/docs/integrations.md b/docs/src/ru/docs/integrations.md index 98c9784..ce3d403 100644 --- a/docs/src/ru/docs/integrations.md +++ b/docs/src/ru/docs/integrations.md @@ -68,10 +68,24 @@ djLint можно использовать в качестве плагина Su ## Visual Studio Code -[Страница рынка](https://marketplace.visualstudio.com/items?itemName=monosans.djlint) +::: content -[GitHub репозиторий](https://github.com/monosans/djlint-vscode) +- [Страница рынка](https://marketplace.visualstudio.com/items?itemName=monosans.djlint) +- [GitHub репозиторий](https://github.com/monosans/djlint-vscode) + ::: +## neovim + +djLint можно использовать в качестве форматера в neovim с помощью плагина ``null-ls``. + +::: content + +- [GitHub репозиторий](https://github.com/jose-elias-alvarez/null-ls.nvim/) +- [Пример конфигурации](https://github.com/shaeinst/roshnivim/blob/5d991fcfa1b8f865f9653a98c6d97a829d4a2add/lua/plugins/null-ls_nvim.lua#L84-L91) + ::: ## coc.nvim -https://www.npmjs.com/package/coc-htmldjango +::: content + +- [npm package](https://www.npmjs.com/package/coc-htmldjango) + :::