nvimtools / none-ls.nvim

null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
The Unlicense
2.39k stars 69 forks source link

how to solve failed to load buitlin ruff for mathod diagnosics pls chack your config #141

Closed sachinchaudhary1808 closed 2 months ago

sachinchaudhary1808 commented 2 months ago

FAQ

Issues

Neovim Version

0.10

Dev Version?

Operating System

nixos

Minimal Config

local null_ls = require("null-ls")

null_ls.setup({
    sources = {
        null_ls.builtins.formatting.stylua,
        null_ls.builtins.completion.spell,
        -- require("none-ls.diagnostics.eslint"), -- requires none-ls-extras.nvim
        null_ls.builtins.diagnostics.mypy,
        null_ls.builtins.diagnostics.ruff,
    },
})

vim.keymap.set("n", "<leader>=", vim.lsp.buf.format, { desc = "formattes code using none-ls" })

Steps to Reproduce

use the code above

Reproducibility Check

Expected Behavior

so like i use nix as pkg manager i searched about this issue on web and they said i need some exra thing which is not in nixpkgs

Actual Behavior

above

Debug Log

i think we don't need that

Help

No

Implementation Help

add that plugin into nixpkgs or help me

Requirements

sachinchaudhary1808 commented 2 months ago

i'm so stupid sorry