Skip to content

Commit

Permalink
feat(conform-nvim): configure formatexpr with AstroCore
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 1, 2024
1 parent 6e3a158 commit 7ca0c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/editing-support/conform-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ return {
{
"AstroNvim/astrocore",
opts = {
options = { opt = { formatexpr = "v:lua.require'conform'.formatexpr()" } },
commands = {
Format = {
function(args)
Expand Down Expand Up @@ -59,7 +60,6 @@ return {
},
},
},
init = function() vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" end,
opts = {
format_on_save = function(bufnr)
if vim.g.autoformat == nil then vim.g.autoformat = true end
Expand Down

0 comments on commit 7ca0c2b

Please sign in to comment.