Gate laptop/work language packs behind stow-loaded modules

Neovim now loads either laptop-languages.lua or work-languages.lua
depending on which stow packages are active. Work mode suppresses
Rust/Go/C/C++/LaTeX servers, DAP, and vimtex entirely via cond guards.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-22 09:58:28 -04:00
parent 6a58f82501
commit 2a0813b861
2 changed files with 56 additions and 28 deletions

View File

@@ -0,0 +1,17 @@
-- Loaded by init.lua when work-languages.lua is absent (laptop stow only).
-- Mirrors dev-settings.el: C/C++, Go, Rust, DAP.
return {
servers = {
clangd = {},
gopls = {},
rust_analyzer = {},
},
parsers = { 'c', 'cpp', 'go', 'latex', 'rust' },
formatters = {
go = { 'goimports', 'gofmt' },
rust = { 'rustfmt' },
c = { 'clang_format' },
cpp = { 'clang_format' },
},
tools = { 'clang-format' },
}