mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
fix rust fmt
This commit is contained in:
@ -25,12 +25,16 @@ return {
|
||||
python = { "isort", "black" },
|
||||
php = { "intelephense" },
|
||||
c = { "clang-format" },
|
||||
rust = { "rustfmt", lsp_format = "fallback" },
|
||||
-- Use the "*" filetype to run formatters on all filetypes.
|
||||
["*"] = { "codespell" },
|
||||
-- ["*"] = { "codespell" },
|
||||
-- Use the "_" filetype to run formatters on filetypes that don't
|
||||
-- have other formatters configured.
|
||||
["_"] = { "trim_whitespace" },
|
||||
},
|
||||
default_format_opts = {
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
format_on_save = function(bufnr)
|
||||
-- Disable with a global or buffer-local variable
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
|
Reference in New Issue
Block a user