Skip to content

Commit

Permalink
fix(nvim): conform already format on save
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 18, 2024
1 parent c96a560 commit 7d4d93d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/neovim/config/lua/lsp_autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ M.setup = function()
organize_imports(client, 0, 1500)
end
end)
if
has_clients_with_method(0, ms.textDocument_formatting)
or has_clients_with_method(0, ms.textDocument_rangeFormatting)
then
vim.lsp.buf.format()
end
end,
group = group,
})
Expand Down

0 comments on commit 7d4d93d

Please sign in to comment.