add conform with yamlfmt
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 8m52s
Build neovim image / build-neovim-arm64 (push) Successful in 10m44s
Build neovim image / update-images-manifest (push) Successful in 18s

This commit is contained in:
Maciej Lebiest 2024-12-17 16:10:37 +01:00 committed by Maciej Lebiest
parent e35fea1f4e
commit 4653116fac
4 changed files with 107 additions and 66 deletions

View file

@ -33,6 +33,17 @@ require("lazy").setup({
opts = {},
priority = 200
},
{
"stevearc/conform.nvim",
--event = { "BufWritePre" },
cmd = { "ConformInfo" },
-- triggering is in lspconfig conf since it is the same key
opts = require("plugins.conform").opts,
init = function()
-- If you want the formatexpr, here is the place to set it
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
end,
},
-- mason-lspconfig might need disabling on first run
{
'williamboman/mason-lspconfig.nvim',