diff options
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/config/sources.lua')
| -rw-r--r-- | .config/nvim/lua/getchoo/lsp/config/sources.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/config/sources.lua b/.config/nvim/lua/getchoo/lsp/config/sources.lua new file mode 100644 index 0000000..7281508 --- /dev/null +++ b/.config/nvim/lua/getchoo/lsp/config/sources.lua @@ -0,0 +1,27 @@ +local null_ls = require("null-ls") +local diagnostics = null_ls.builtins.diagnostics +local formatting = null_ls.builtins.formatting + +local M = { + lsp_servers = { "rust_analyzer", "pyright", "bashls" }, + null_ls = { + diagnostics.alex, + diagnostics.codespell, + diagnostics.flake8, + formatting.black, + formatting.codespell, + formatting.prettier, + formatting.rustfmt, + formatting.stylua, + }, + mason = { + "alex", + "black", + "codespell", + "flake8", + "prettier", + "stylua", + }, +} + +return M |
