From 19bdb051cc7c6d9f314cb4141cc0d4764a77dc66 Mon Sep 17 00:00:00 2001 From: Dylan Pinn Date: Fri, 26 Apr 2024 00:19:18 +1000 Subject: [PATCH] fix: add missing formatexpr for conform This was working previously as the LSP client defaults to using itself when not set. --- nvim/after/plugin/conform.lua | 4 ++++ 1 file changed, 4 insertions(+) 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()"