06012024
This commit is contained in:
parent
b699566b51
commit
df251775b8
2 changed files with 7 additions and 2 deletions
|
@ -6,11 +6,16 @@ return {
|
||||||
python = { "ruff_format", "ruff_fix" },
|
python = { "ruff_format", "ruff_fix" },
|
||||||
javascript = { "biome" },
|
javascript = { "biome" },
|
||||||
typescript = { "biome" },
|
typescript = { "biome" },
|
||||||
|
javascriptreact = { "biome" },
|
||||||
|
typescriptreact = { "biome" },
|
||||||
json = { "biome" },
|
json = { "biome" },
|
||||||
jsx = { "biome" },
|
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
['*'] = { 'trim_whitespace', 'codespell' },
|
['*'] = { 'trim_whitespace', 'codespell' },
|
||||||
},
|
},
|
||||||
|
format_on_save = {
|
||||||
|
timeout_ms = 500,
|
||||||
|
lsp_fallback = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
lazy = false,
|
lazy = false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ local config = function()
|
||||||
-- nvim-lint
|
-- nvim-lint
|
||||||
vim.keymap.set("n", "<leader>li", function() require("lint").try_lint() end, opts)
|
vim.keymap.set("n", "<leader>li", function() require("lint").try_lint() end, opts)
|
||||||
-- conform
|
-- 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)
|
end)
|
||||||
|
|
||||||
lsp_zero.set_sign_icons({
|
lsp_zero.set_sign_icons({
|
||||||
|
|
Loading…
Add table
Reference in a new issue