feat(lsp): replace jedi+pyright with pyrefly+ruff
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
local utils = require("ow.utils")
|
||||
|
||||
---@type ServerConfig
|
||||
return {
|
||||
mason = "ruff",
|
||||
keymaps = {
|
||||
{
|
||||
mode = "n",
|
||||
lhs = "<leader>lf",
|
||||
rhs = function()
|
||||
vim.lsp.buf.format()
|
||||
utils.format({
|
||||
cmd = {
|
||||
"ruff",
|
||||
"check",
|
||||
"--stdin-filename=%file%",
|
||||
"--select=I",
|
||||
"--fix",
|
||||
"--quiet",
|
||||
"-",
|
||||
},
|
||||
output = "stdout",
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user