diff --git a/lsp/rust_analyzer.lua b/lsp/rust_analyzer.lua index 6504b5d..02f92b3 100644 --- a/lsp/rust_analyzer.lua +++ b/lsp/rust_analyzer.lua @@ -1,4 +1,4 @@ --- bacon runs the checker (plugins/lint.lua), so rust-analyzer keeps its default `cargo check`. +-- rust-analyzer runs the checker itself (`cargo check` on save); nvim-lint has no bacon linter. return { settings = { ["rust-analyzer"] = { diff --git a/lua/plugins/lint.lua b/lua/plugins/lint.lua index d371acd..3a2f7f3 100644 --- a/lua/plugins/lint.lua +++ b/lua/plugins/lint.lua @@ -6,7 +6,7 @@ return { event = { "BufReadPost", "BufNewFile", "BufWritePost" }, config = function() local lint = require("lint") - lint.linters_by_ft = { go = { "golangcilint" }, rust = { "bacon" } } + lint.linters_by_ft = { go = { "golangcilint" } } vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, { group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }), diff --git a/nix/module.nix b/nix/module.nix index 1e24238..7105947 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -22,12 +22,12 @@ let ] ++ lib.optional stdenv.hostPlatform.isLinux stdenv.cc; - # rustup supplies cargo, rustfmt, clippy and rust-analyzer (and the toolchain - # fff builds with when its prebuilt download fails), so those are not listed separately. + # The Rust toolchain (cargo, clippy, rustfmt, rust-analyzer) comes from each repo's + # devenv.nix, so start nvim inside the direnv/devenv shell. cargo-nextest stays here + # because neotest-rust needs it; it uses the cargo on PATH. fullTools = with pkgs; [ - lazygit - rustup cargo-nextest + lazygit llama-cpp # snacks.image: magick converts, gs renders PDFs, tectonic LaTeX, mmdc mermaid @@ -60,8 +60,6 @@ let iferr impl - bacon - tinymist # typst LSP and typst-preview.nvim websocat typst