neovim-config/lua/plugins/null-ls-nvim.lua

33 lines
969 B
Lua
Raw Normal View History

2022-10-06 20:59:24 +00:00
local null_ls = require('null-ls')
null_ls.setup({
sources = {
-- Linter
2022-10-07 17:03:34 +00:00
-- null_ls.builtins.diagnostics.eslint_d,
2022-10-06 20:59:24 +00:00
null_ls.builtins.diagnostics.jsonlint,
null_ls.builtins.diagnostics.markdownlint,
null_ls.builtins.diagnostics.stylelint,
null_ls.builtins.diagnostics.tidy,
null_ls.builtins.diagnostics.todo_comments,
null_ls.builtins.diagnostics.tsc,
2022-10-07 17:03:34 +00:00
null_ls.builtins.diagnostics.fish,
null_ls.builtins.diagnostics.codespell,
2022-10-06 20:59:24 +00:00
-- Formatter
null_ls.builtins.formatting.eslint_d,
null_ls.builtins.formatting.markdownlint,
null_ls.builtins.formatting.prettierd,
null_ls.builtins.formatting.sqlfluff.with({
extra_args = { "--dialect", "postgres" },
}),
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.rustfmt,
null_ls.builtins.formatting.tidy,
null_ls.builtins.formatting.taplo,
-- Refactoring
2022-10-06 21:42:47 +00:00
-- null_ls.builtins.code_actions.refactoring,
2022-10-06 20:59:24 +00:00
-- Shells
-- Git
null_ls.builtins.code_actions.gitsigns,
},
})