nvim/lua/lsp/null_ls_sources.lua
Evie Litherland-Smith 9afe8567fd Add cspell, exclusively use null-ls for formatting
Add cspell extension and initial cspell.json ignore list
Disable formatting in all other language servers, use null-ls
exclusively for finer control over formatters
Add additional formatters
2023-05-17 17:03:02 +01:00

24 lines
723 B
Lua

local null_ls = require "null-ls"
local cspell = require "cspell"
return {
cspell.code_actions,
null_ls.builtins.code_actions.gitsigns,
cspell.diagnostics,
null_ls.builtins.formatting.alejandra,
null_ls.builtins.formatting.autoflake,
null_ls.builtins.formatting.beautysh,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.fixjson,
-- null_ls.builtins.formatting.fprettify,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.mdformat,
-- null_ls.builtins.formatting.nixfmt,
-- null_ls.builtins.formatting.nixpkgs_fmt,
null_ls.builtins.formatting.shellharden,
null_ls.builtins.formatting.stylua,
null_ls.builtins.hover.dictionary,
}