Disable python format on save

This commit is contained in:
Rui Xuan 2024-08-19 15:52:24 +08:00
parent 52d976fbc7
commit db8a24cc2c
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true }
local disable_filetypes = { c = true, cpp = true, py = true, python = true }
return {
timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],