mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 19:26:09 +00:00
Fix lsp fallback of conform
This commit is contained in:
@@ -53,7 +53,6 @@ return {
|
||||
},
|
||||
after = function(plug)
|
||||
require("blink-cmp").setup(plug.opts)
|
||||
vim.lsp.config("*", { capabilities = require("blink.cmp").get_lsp_capabilities() })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ return {
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
default_format_opts = { async = true, lsp_format = "fallback" },
|
||||
default_format_opts = { async = true },
|
||||
formatters_by_ft = {
|
||||
python = function(bufnr)
|
||||
if require("conform").get_formatter_info("ruff_format", bufnr).available then
|
||||
@@ -31,8 +31,8 @@ return {
|
||||
sql = { "pg_format" },
|
||||
cs = { "csharpier" },
|
||||
nix = { "alejandra" },
|
||||
-- ["_"] = { "injected", lsp_format = "last" },
|
||||
["*"] = { "injected" }
|
||||
["*"] = { "injected" },
|
||||
["_"] = { "injected", lsp_format = "last" },
|
||||
},
|
||||
formatters = {
|
||||
["biome-check"] = {
|
||||
|
||||
Reference in New Issue
Block a user