mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 03:06:54 +00:00
Bundle ruff in nvim closure
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -24,14 +24,6 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"increment-activator",
|
||||
keys = {
|
||||
{ "<C-A>", desc = "Increment" },
|
||||
{ "<C-X>", desc = "Decrement" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"leap.nvim",
|
||||
keys = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user