diff options
Diffstat (limited to 'config/plugins/efmls.nix')
| -rw-r--r-- | config/plugins/efmls.nix | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/config/plugins/efmls.nix b/config/plugins/efmls.nix new file mode 100644 index 0000000..b4740ac --- /dev/null +++ b/config/plugins/efmls.nix @@ -0,0 +1,100 @@ +{ + plugins = { + lsp.servers.efm.extraOptions = { + init_options.documentFormatting = true; + }; + + efmls-configs = { + enable = true; + + externallyManagedPackages = ["prettier_eslint"]; + + setup = { + all = { + linter = [ + "alex" + "codespell" + ]; + }; + + bash = { + formatter = "beautysh"; + linter = "shellcheck"; + }; + + css = { + formatter = "prettier_d"; + }; + + fish = { + formatter = "fish_indent"; + }; + + html = { + formatter = "prettier_d"; + }; + + javascript = { + formatter = "prettier_eslint"; + linter = "eslint_d"; + }; + + json = { + formatter = "prettier_d"; + }; + + lua = { + formatter = "stylua"; + }; + + nix = { + formatter = "alejandra"; + linter = "statix"; + }; + + python = { + formatter = [ + "ruff" + "isort" + ]; + + linter = [ + "mypy" + "pylint" + ]; + }; + + rust = { + formatter = "rustfmt"; + }; + + sass = { + formatter = "prettier_d"; + }; + + scss = { + formatter = "prettier_d"; + }; + + sh = { + formatter = ["beautysh" "shellharden"]; + linter = "shellcheck"; + }; + + typescript = { + formatter = "prettier_eslint"; + linter = "eslint_d"; + }; + + yaml = { + formatter = "prettier"; + linter = "actionlint"; + }; + + zsh = { + formatter = "beautysh"; + }; + }; + }; + }; +} |
