diff options
| author | seth <[email protected]> | 2023-12-18 01:28:42 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-18 02:18:35 -0500 |
| commit | 8faa242f21648e52a6bbdfa803fd4ea1b0e347e0 (patch) | |
| tree | eff6694cefb2f821bf19b0d8cb3d97bf48cb15b9 /config/plugins/efmls.nix | |
| parent | 9fe8afd0c5f2b439176728d8863570bf22614dbd (diff) | |
port to nixvim
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"; + }; + }; + }; + }; +} |
