mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 01:38:54 +02:00
feat(conform): set vim.opt.formatexpr
This commit is contained in:
parent
9b16770573
commit
766d5e5bf7
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue