Merge commit 'f4858d42a8' as 'config/nvim'

This commit is contained in:
neoteny 2021-11-28 22:27:34 +02:00
commit a6d1f45fd6
36 changed files with 906 additions and 0 deletions

View file

@ -0,0 +1,38 @@
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