summaryrefslogtreecommitdiff
path: root/config/plugins/efmls.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/plugins/efmls.nix')
-rw-r--r--config/plugins/efmls.nix53
1 files changed, 9 insertions, 44 deletions
diff --git a/config/plugins/efmls.nix b/config/plugins/efmls.nix
index 3d543a7..e3cfb07 100644
--- a/config/plugins/efmls.nix
+++ b/config/plugins/efmls.nix
@@ -1,23 +1,15 @@
{
plugins = {
lsp.servers.efm.extraOptions = {
- init_options.documentFormatting = true;
+ init_options = {
+ documentFormatting = true;
+ documentRangeFormatting = true;
+ };
};
efmls-configs = {
enable = true;
- externallyManagedPackages = [
- "eslintd"
- "isort"
- "mypy"
- "prettierd"
- "prettier_eslint"
- "pylint"
- "ruff"
- "rustfmt"
- ];
-
setup = {
all = {
linter = [
@@ -32,7 +24,7 @@
};
css = {
- formatter = "prettier_d";
+ formatter = "prettier";
};
fish = {
@@ -40,16 +32,11 @@
};
html = {
- formatter = "prettier_d";
- };
-
- javascript = {
- formatter = "prettier_eslint";
- linter = "eslint_d";
+ formatter = "prettier";
};
json = {
- formatter = "prettier_d";
+ formatter = "prettier";
};
lua = {
@@ -57,32 +44,15 @@
};
nix = {
- formatter = "alejandra";
linter = "statix";
};
- python = {
- formatter = [
- "ruff"
- "isort"
- ];
-
- linter = [
- "mypy"
- "pylint"
- ];
- };
-
- rust = {
- formatter = "rustfmt";
- };
-
sass = {
- formatter = "prettier_d";
+ formatter = "prettier";
};
scss = {
- formatter = "prettier_d";
+ formatter = "prettier";
};
sh = {
@@ -90,11 +60,6 @@
linter = "shellcheck";
};
- typescript = {
- formatter = "prettier_eslint";
- linter = "eslint_d";
- };
-
yaml = {
formatter = "prettier";
linter = "actionlint";