This commit is contained in:
Felipe Magrassi 2024-08-05 20:05:04 -03:00
parent a74c09f951
commit 3ae22ef849
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,7 @@ lint.linters_by_ft = {
ruby = { 'ruby' },
dockerfile = { 'hadolint' },
typescript = { 'eslint_d' },
eruby = { 'erblint' },
}
local conform = require 'conform'
@ -54,6 +55,7 @@ conform.formatters_by_ft = {
typescript = { 'prettierd ' },
ruby = { 'rubocop' },
markdown = { 'markdownlint' },
eruby = { 'erb_lint' },
}
conform.format_on_save = function(bufnr)
-- Disable "format_on_save lsp_fallback" for languages that don't