AutoYADM commit: 2024-12-26 15:00:02
This commit is contained in:
parent
f069639d31
commit
a613baa1ee
2 changed files with 26 additions and 0 deletions
|
@ -19,6 +19,23 @@ return {
|
|||
"stevearc/conform.nvim",
|
||||
optional = true,
|
||||
opts = {
|
||||
-- format_on_save = function(bufnr)
|
||||
-- local ignore_filetypes = {"tex"}
|
||||
-- if vim.tbl_contains(ignore_filetypes, vim.bo[bufnr].filetype) then
|
||||
-- return
|
||||
-- end
|
||||
-- -- Disable with a global or buffer-local variable
|
||||
-- if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
-- return
|
||||
-- end
|
||||
-- -- Disable autoformat for files in a certain path
|
||||
-- local bufname = vim.api.nvim_buf_get_name(bufnr)
|
||||
-- if bufname:match("/node_modules/") then
|
||||
-- return
|
||||
-- end
|
||||
-- -- ...additional logic...
|
||||
-- return { timeout_ms = 500, lsp_format = "fallback" }
|
||||
-- end,
|
||||
formatters_by_ft = {
|
||||
-- requires install via AUR
|
||||
-- TODO: add to mason registry?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue