summaryrefslogtreecommitdiff
path: root/config/plugins/efmls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/plugins/efmls.lua')
-rw-r--r--config/plugins/efmls.lua59
1 files changed, 59 insertions, 0 deletions
diff --git a/config/plugins/efmls.lua b/config/plugins/efmls.lua
new file mode 100644
index 0000000..979cafb
--- /dev/null
+++ b/config/plugins/efmls.lua
@@ -0,0 +1,59 @@
+local alex = require("efmls-configs.linters.alex")
+local actionlint = require("efmls-configs.linters.actionlint")
+local beautysh = require("efmls-configs.formatters.beautysh")
+local codespell = require("efmls-configs.linters.codespell")
+local fish_indent = require("efmls-configs.formatters.fish_indent")
+local prettier = require("efmls-configs.formatters.prettier")
+local prettier_eslint = require("efmls-configs.formatters.prettier_eslint")
+local shellcheck = require("efmls-configs.linters.shellcheck")
+local statix = require("efmls-configs.linters.statix")
+local stylua = require("efmls-configs.formatters.stylua")
+
+local languages = {
+ all = { alex, codespell },
+
+ bash = {
+ beautysh,
+ shellcheck,
+ },
+
+ css = { prettier },
+
+ fish = { fish_indent },
+
+ html = { prettier },
+
+ javascript = { prettier_eslint },
+
+ json = { prettier },
+
+ lua = { stylua },
+
+ nix = { statix },
+
+ sass = { prettier },
+
+ scss = { prettier },
+
+ sh = { beautysh, shellcheck },
+
+ typescript = { prettier_eslint },
+
+ yaml = { prettier, actionlint },
+
+ zsh = { beautysh },
+}
+
+return {
+ filetypes = vim.tbl_keys(languages),
+
+ settings = {
+ rootMarkers = { ".git/" },
+ languages = languages,
+ },
+
+ init_options = {
+ documentFormatting = true,
+ documentRangeFormatting = true,
+ },
+}