Final plugins

This commit is contained in:
Miguel Palhas
2024-10-05 09:47:33 +01:00
parent 9d235dea9d
commit b718a8b75e
15 changed files with 306 additions and 30 deletions
+17 -7
View File
@@ -1,15 +1,25 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" },
rust = { "rustfmt", lsp_format = "fallback" },
javascript = { "biome" },
typescript = { "biome" },
yaml = { "biome" },
solidity = { "forge_fmt" },
nix = { "nixfmt" },
},
-- format_on_save = {
-- -- These options will be passed to conform.format()
-- timeout_ms = 500,
-- lsp_fallback = true,
-- },
format_on_save = function()
local buf_path = vim.api.nvim_buf_get_name(0)
if buf_path:find "/contrib/" then
return nil
end
return {
timeout_ms = 500,
lsp_format = "fallback",
}
end,
}
return options