Port the live ~/.config/nvim working tree (bcherb2/nvim master plus its uncommitted git.lua and minimap.lua edits): adds claudecode, eslint, lsp, typescript, meow-yarn and refactoring-fix specs, drops the files the live repo deleted, and takes live for everything else. Kept from public: lazy.lua with luarocks disabled, the ai_assist cond guard (nvim-ai-assist is not anonymously clonable, so a fresh box only gets it from the private clone list), and the scrubbed endpoint comment in place of live's LAN address.
28 lines
1.1 KiB
Lua
28 lines
1.1 KiB
Lua
-- In-editor ESLint diagnostics via the eslint language server (Mason: eslint-lsp,
|
|
-- i.e. vscode-eslint-language-server). Added 2026-10-23 for the TS code-walkthrough prep.
|
|
--
|
|
-- Diagnostics only, NO format/fix on save: eslint attaches and shows lint squiggles
|
|
-- inline, but will not silently rewrite the buffer when you save (which would bury your
|
|
-- real diff in a walkthrough). Fix manually with <leader>ca (code action -> "Fix all
|
|
-- ESLint problems") or :EslintFixAll when you actually want it.
|
|
--
|
|
-- Note: eslint runs the project's own eslint + typescript-eslint. typescript-eslint does
|
|
-- not yet support TypeScript 7, so on a TS 7 project the server errors out — that is the
|
|
-- project's toolchain, not this config. Projects pinned to TS 5.x work normally.
|
|
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
eslint = {
|
|
settings = {
|
|
-- find eslint config even when it lives in a subfolder, not the cwd root
|
|
workingDirectories = { mode = "auto" },
|
|
format = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|