feat(conform): set vim.opt.formatexpr
This commit is contained in:
@ -5,6 +5,7 @@ return {
|
|||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = "ConformInfo",
|
cmd = "ConformInfo",
|
||||||
init = function()
|
init = function()
|
||||||
|
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
||||||
-- Install the conform formatter on VeryLazy
|
-- Install the conform formatter on VeryLazy
|
||||||
require("lazyvim.util").on_very_lazy(function()
|
require("lazyvim.util").on_very_lazy(function()
|
||||||
require("lazyvim.plugins.lsp.format").custom_format = function(buf)
|
require("lazyvim.plugins.lsp.format").custom_format = function(buf)
|
||||||
|
Reference in New Issue
Block a user