mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 03:55:37 +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
|
# 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)
|
# (for json or to allow use without an outer shell)
|
||||||
biome
|
biome
|
||||||
|
ruff
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,7 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
default_format_opts = { async = true },
|
default_format_opts = { async = true },
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
python = function(bufnr)
|
python = { "ruff_format", "ruff_organize_imports" },
|
||||||
if require("conform").get_formatter_info("ruff_format", bufnr).available then
|
|
||||||
return { "ruff_format", "ruff_organize_imports" }
|
|
||||||
else
|
|
||||||
return { "isort", "black" }
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
javascript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
|
javascript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
|
||||||
typescript = { "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 },
|
javascriptreact = { "biome-check", "prettierd", "prettier", stop_after_first = true },
|
||||||
|
|||||||
@@ -24,14 +24,6 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"increment-activator",
|
|
||||||
keys = {
|
|
||||||
{ "<C-A>", desc = "Increment" },
|
|
||||||
{ "<C-X>", desc = "Decrement" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"leap.nvim",
|
"leap.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
|
|||||||
@@ -35,14 +35,6 @@ return {
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- {
|
|
||||||
-- "ts-comments.nvim",
|
|
||||||
-- event = { "BufReadPost", "BufWritePost", "BufNewFile" },
|
|
||||||
-- after = function()
|
|
||||||
-- require("ts-comments").setup({})
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"vim-illuminate",
|
"vim-illuminate",
|
||||||
load = vim.cmd.packadd,
|
load = vim.cmd.packadd,
|
||||||
|
|||||||
Reference in New Issue
Block a user