remove formatting

This commit is contained in:
2025-09-22 13:12:02 -04:00
parent 72d99537bf
commit baec11b559

View File

@@ -1,5 +1,3 @@
local nonels_augroup = core.misc.augroup("nullls formatting")
return {
{ "neovim/nvim-lspconfig",
reqs = {
@@ -16,7 +14,6 @@ return {
"jdtls",
"lua_ls",
"basedpyright",
"black",
"debugpy"
}
}
@@ -41,33 +38,4 @@ return {
{ "mfussenegger/nvim-jdtls",
reqs = "mfussenegger/nvim-dap"
},
{ "nvimtools/none-ls.nvim",
lazy = dep_short.ft("python"),
load = function()
local null_ls = require("null-ls")
null_ls.setup {
sources = {
null_ls.builtins.formatting.black,
},
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then
vim.api.nvim_clear_autocmds({
group = nonels_augroup,
buffer = bufnr
})
core.misc.auto("BufWritePre", {
group = nonels_augroup,
buffer = bufnr,
callback = function()
vim.lsp.buf.format({ bufnr = bufnr })
end
})
end
end
}
end
}
}