mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
38 lines
547 B
Lua
38 lines
547 B
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
local null_ls = require "null-ls"
|
|
|
|
local fmt = null_ls.builtins.formatting
|
|
local lint = null_ls.builtins.diagnostics
|
|
|
|
null_ls.config {
|
|
sources = {
|
|
-- Lua
|
|
fmt.stylua,
|
|
lint.selene,
|
|
|
|
-- Golang
|
|
fmt.gofumpt,
|
|
fmt.goimports,
|
|
|
|
-- JavaScirpt
|
|
fmt.prettierd,
|
|
lint.eslint_d,
|
|
|
|
-- Shell
|
|
fmt.shfmt,
|
|
lint.shellcheck,
|
|
|
|
-- Python
|
|
fmt.black,
|
|
fmt.isort,
|
|
lint.flake8,
|
|
|
|
-- Rust
|
|
fmt.rustfmt,
|
|
},
|
|
}
|
|
end
|
|
|
|
return M
|