mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
formatted the conform lua configuration file
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
init = function()
|
init = function()
|
||||||
local whichKey = require("which-key");
|
local whichKey = require("which-key")
|
||||||
local conform = require("conform")
|
local conform = require("conform")
|
||||||
|
|
||||||
whichKey.register({
|
whichKey.register({
|
||||||
@@ -13,9 +13,9 @@ return {
|
|||||||
|
|
||||||
conform.format({ bufnr = currentFileBufferNumber })
|
conform.format({ bufnr = currentFileBufferNumber })
|
||||||
end,
|
end,
|
||||||
"Format the current file"
|
"Format the current file",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
@@ -26,14 +26,15 @@ return {
|
|||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
javascript = { "eslint_d" },
|
javascript = { "eslint_d" },
|
||||||
php = { "phpcbf" },
|
php = { "phpcbf" },
|
||||||
elm = { "elm_format" }
|
elm = { "elm_format" },
|
||||||
|
fish = { "fish_indent" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
conform.formatters.phpcbf = {
|
conform.formatters.phpcbf = {
|
||||||
prepend_args = {
|
prepend_args = {
|
||||||
"--standard=PSR12"
|
"--standard=PSR12",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
end,
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user