diff --git a/nvim/after/plugin/conform.lua b/nvim/after/plugin/conform.lua index 645d06b45..17f783414 100644 --- a/nvim/after/plugin/conform.lua +++ b/nvim/after/plugin/conform.lua @@ -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()"