Skip to content

refactor(nvim): drop lazyvim.plugins.linting import - #47

Merged
potsrevennil merged 1 commit into
masterfrom
refactor/drop-nvim-lint
Oct 20, 2026
Merged

potsrevennil merged 1 commit into
masterfrom
refactor/drop-nvim-lint

Conversation

@potsrevennil

Copy link
Copy Markdown
Owner

nvim-lint was loading on every LazyFile event, but LazyVim's default linting.lua only configures a linter for fish — a filetype none of this config's languages (lua, sh, nix, python, go, c/cpp, typst, toml, rust, haskell, yaml) use. So it registered a BufWritePost/InsertLeave autocmd and then never actually ran a linter.

Diagnostics are already covered by the LSP servers (lua/plugins/lsp.lua) and none-ls (golangci_lint, deadnix, statix in lua/plugins/none-ls.lua). The per-language nvim-lint configs live in lazyvim.plugins.extras.lang.* modules this config doesn't import, so the linting import was nvim-lint's only spec — dropping it removes the plugin outright rather than needing an enabled = false stub.

  • Verify: CI nix build + smoke test — clean startup, no spec errors; LSP + none-ls diagnostics unaffected.
  • Out of scope: no replacement linter added; if real linting is wanted later, nvim-lint is one import to restore.

nvim-lint was loading on every LazyFile but LazyVim's default only
configures a linter for `fish`, which none of this config's languages
use -- so it registered a BufWritePost/InsertLeave autocmd and then never
ran a linter. Diagnostics already come from the LSP servers and none-ls
(golangci_lint, deadnix). The per-language nvim-lint setups live in
lazyvim.plugins.extras.lang.* modules this config doesn't import, so the
`linting` import was its only spec: dropping it removes nvim-lint cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@potsrevennil
potsrevennil marked this pull request as ready for review October 20, 2026 06:54
@potsrevennil
potsrevennil merged commit 8ed41f5 into master Oct 20, 2026
5 checks passed
@potsrevennil
potsrevennil deleted the refactor/drop-nvim-lint branch October 20, 2026 06:55
potsrevennil added a commit that referenced this pull request Oct 20, 2026
Regenerated with `:Lazy! sync` on top of master (#47, #51 merged).
Same 44-entry plugin set; 13 pins bumped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant