refactor(rust): take toolchain from devenv, drop bacon linter
Remove rustup and bacon from nix tools and the bacon linter mapping that made nvim-lint throw on every Rust buffer. Keep cargo-nextest global for neotest-rust. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
add5626753
commit
28cc9104c5
3 files changed
+6
-8
No files matched your search
@@ -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 {
|
return {
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ return {
|
|||||||
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
|
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
|
||||||
config = function()
|
config = function()
|
||||||
local lint = require("lint")
|
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" }, {
|
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, {
|
||||||
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
|
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
|
||||||
|
|||||||
+4
-6
@@ -22,12 +22,12 @@ let
|
|||||||
]
|
]
|
||||||
++ lib.optional stdenv.hostPlatform.isLinux stdenv.cc;
|
++ lib.optional stdenv.hostPlatform.isLinux stdenv.cc;
|
||||||
|
|
||||||
# rustup supplies cargo, rustfmt, clippy and rust-analyzer (and the toolchain
|
# The Rust toolchain (cargo, clippy, rustfmt, rust-analyzer) comes from each repo's
|
||||||
# fff builds with when its prebuilt download fails), so those are not listed separately.
|
# 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; [
|
fullTools = with pkgs; [
|
||||||
lazygit
|
|
||||||
rustup
|
|
||||||
cargo-nextest
|
cargo-nextest
|
||||||
|
lazygit
|
||||||
llama-cpp
|
llama-cpp
|
||||||
|
|
||||||
# snacks.image: magick converts, gs renders PDFs, tectonic LaTeX, mmdc mermaid
|
# snacks.image: magick converts, gs renders PDFs, tectonic LaTeX, mmdc mermaid
|
||||||
@@ -60,8 +60,6 @@ let
|
|||||||
iferr
|
iferr
|
||||||
impl
|
impl
|
||||||
|
|
||||||
bacon
|
|
||||||
|
|
||||||
tinymist # typst LSP and typst-preview.nvim
|
tinymist # typst LSP and typst-preview.nvim
|
||||||
websocat
|
websocat
|
||||||
typst
|
typst
|
||||||
|
|||||||
Reference in new issue
Block a user