disable formatter for php
This commit is contained in:
parent
4458a8755e
commit
dbde641e35
1 changed files with 8 additions and 0 deletions
|
|
@ -62,6 +62,14 @@ return {
|
|||
config = function(_, opts)
|
||||
require("conform").setup(opts)
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "php" },
|
||||
callback = function(bufnr)
|
||||
vim.b[bufnr].disable_autoformat
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
||||
local function toggleAutoFormat()
|
||||
-- to make this global, change b to g
|
||||
if vim.b.disable_autoformat == nil then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue