Skip to content

Commit

Permalink
fix: make format options merge
Browse files Browse the repository at this point in the history
This re-enables fallback to LSP.
  • Loading branch information
hjdivad committed Apr 2, 2024
1 parent 40ec5ba commit 64eb504
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/nvim/config/lua/plugins/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ return {
-- see https://www.lazyvim.org/plugins/formatting
{
"stevearc/conform.nvim",
opts = function()
---@class ConformOpts
local opts = {
---@type table<string, conform.FormatterUnit[]>
opt = {
formatters_by_ft = {
markdown = { "prettier" },
json = { "fixjson" },
lua = { "stylua" },
rust = { "rustfmt" },
python = {},
},
}
return opts
end,
},
},
}

0 comments on commit 64eb504

Please sign in to comment.