diff options
| author | seth <[email protected]> | 2023-12-31 08:01:03 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-31 08:52:04 -0500 |
| commit | dec8d36cbdbb3b9c5c12792ed199892ce2e82069 (patch) | |
| tree | 89422c04c25b4ed4c3156d4477c894416500e8b3 /config/plugins/efmls.lua | |
| parent | ae9136a14ae0b0fe91faad59b23d3a532ca84ed5 (diff) | |
back to regular lua
Diffstat (limited to 'config/plugins/efmls.lua')
| -rw-r--r-- | config/plugins/efmls.lua | 59 |
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, + }, +} |
