This commit is contained in:
foozzi 2024-01-06 00:18:59 -05:00
parent b699566b51
commit df251775b8
2 changed files with 7 additions and 2 deletions

View file

@ -6,11 +6,16 @@ return {
python = { "ruff_format", "ruff_fix" },
javascript = { "biome" },
typescript = { "biome" },
javascriptreact = { "biome" },
typescriptreact = { "biome" },
json = { "biome" },
jsx = { "biome" },
sh = { "shfmt" },
['*'] = { 'trim_whitespace', 'codespell' },
},
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
},
lazy = false,
}

View file

@ -44,7 +44,7 @@ local config = function()
-- nvim-lint
vim.keymap.set("n", "<leader>li", function() require("lint").try_lint() end, opts)
-- conform
vim.keymap.set("n", "<leader>ff", function() require("conform").format({ bufnr = bufnr }) end, opts)
vim.keymap.set("n", "<leader>fr", function() require("conform").format({ bufnr = bufnr }) end, opts)
end)
lsp_zero.set_sign_icons({