Bundle ruff in nvim closure

This commit is contained in:
2025-05-09 19:52:46 +02:00
parent 45b5e8c413
commit 32e96de43f
4 changed files with 2 additions and 23 deletions
+1
View File
@@ -153,5 +153,6 @@ in
# might need to find a way to disable it for projects that use prettier but it's just more convenient to have it always on
# (for json or to allow use without an outer shell)
biome
ruff
];
}
+1 -7
View File
@@ -14,13 +14,7 @@ return {
opts = {
default_format_opts = { async = true },
formatters_by_ft = {
python = function(bufnr)
if require("conform").get_formatter_info("ruff_format", bufnr).available then
return { "ruff_format", "ruff_organize_imports" }
else
return { "isort", "black" }
end
end,
python = { "ruff_format", "ruff_organize_imports" },
javascript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
typescript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
javascriptreact = { "biome-check", "prettierd", "prettier", stop_after_first = true },
-8
View File
@@ -24,14 +24,6 @@ return {
end,
},
{
"increment-activator",
keys = {
{ "<C-A>", desc = "Increment" },
{ "<C-X>", desc = "Decrement" },
},
},
{
"leap.nvim",
keys = {
-8
View File
@@ -35,14 +35,6 @@ return {
end
},
-- {
-- "ts-comments.nvim",
-- event = { "BufReadPost", "BufWritePost", "BufNewFile" },
-- after = function()
-- require("ts-comments").setup({})
-- end,
-- },
{
"vim-illuminate",
load = vim.cmd.packadd,