Skip to content
Snippets Groups Projects
Commit 86855210 authored by codecraft's avatar codecraft :crocodile:
Browse files

Add python formatter

parent d73aea88
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) ...@@ -8,8 +8,8 @@ local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
local formatters_linters = { local formatters_linters = {
prettier = {}, prettier = {},
erb_lint = {},
rustfmt = {}, rustfmt = {},
black = {},
} }
mason_null_ls.setup({ mason_null_ls.setup({
...@@ -18,8 +18,8 @@ mason_null_ls.setup({ ...@@ -18,8 +18,8 @@ mason_null_ls.setup({
null_ls.setup ({ null_ls.setup ({
sources = { sources = {
formatting.prettier, formatting.prettier,
diagnostics.erb_lint,
formatting.rustfmt, formatting.rustfmt,
formatting.black,
}, },
on_attach = function(current_client, bufnr) on_attach = function(current_client, bufnr)
if current_client.supports_method("textDocument/formatting") then if current_client.supports_method("textDocument/formatting") then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment