summaryrefslogtreecommitdiff
path: root/config/plugins/efmls.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-31 08:32:06 -0500
committerseth <[email protected]>2023-12-31 08:32:35 -0500
commitae9136a14ae0b0fe91faad59b23d3a532ca84ed5 (patch)
tree06bee1b9d961b372312bd26310e2b1baa7fbc342 /config/plugins/efmls.nix
parentadd749d0d1597930ae95ee29d10f5f41416b76d7 (diff)
lsp: use more native lsp features over efmnixvim
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";