Skip to content

Commit

Permalink
fix: add missing formatexpr for conform
Browse files Browse the repository at this point in the history
This was working previously as the LSP client defaults to using itself
when not set.
  • Loading branch information
dylanpinn committed Apr 25, 2024
1 parent 8a7a906 commit 19bdb05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvim/after/plugin/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ local options = {
}

require("conform").setup(options)

-- This should be okay to set globally, as will default back to the LSP
-- formatexpr if present and then to nothing.
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"

0 comments on commit 19bdb05

Please sign in to comment.