show pyright errors

This commit is contained in:
Ray Elliott 2025-12-07 23:53:32 +00:00
commit a57f72f7c7
5 changed files with 28 additions and 42 deletions

View file

@ -44,17 +44,7 @@ return {
local formatting = null_ls.builtins.formatting
-- Note: Diagnostics (linters) moved to nvim-lint plugin
-- Custom ruff formatter (ruff format subcommand)
local ruff_format = {
method = null_ls.methods.FORMATTING,
filetypes = { "python" },
generator = null_ls.formatter({
command = find_executable({ "ruff" }) or "ruff",
args = { "format", "--stdin-filename", "$FILENAME", "-" },
to_stdin = true,
}),
}
-- Note: Python formatting handled by ruff LSP
null_ls.setup({
sources = {
@ -85,9 +75,6 @@ return {
formatting.stylua.with({
command = find_executable({ "stylua" }),
}),
-- ruff (Python formatter - custom since not in builtins)
ruff_format,
},
-- Format on save