Switch Mason to stylelint-language-server (plus tmux + copilot tidy)#312
Merged
Conversation
The stylelint-lsp Mason package is deprecated (since 2026-03-27) in favor of stylelint-language-server. Both Mason packages map to the same nvim-lspconfig server name (stylelint_lsp), and the lspconfig now invokes the stylelint-language-server binary, so no lspconfig changes are needed. - Remove stylelint_lsp from mason-lspconfig ensure_installed (which was resolving to the deprecated stylelint-lsp Mason package) - Add stylelint-language-server directly to the Mason registry tools list Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Re-ran 'copilot completion fish'; the newer generator quotes condition predicates and subcommand names. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sourcing a separate file after 'run ~/.config/tmux/plugins/tpm/tpm' makes it clearer that these bindings are intentionally applied after TPM loads so they override TPM's own I/U/M-u bindings. Also drop the explicit -e TMUX=… flag on display-popup; tmux propagates the parent TMUX environment automatically. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mason: switch to stylelint-language-server
The
stylelint-lspMason package is deprecated (since 2026-03-27) in favor ofstylelint-language-server, which surfaces as a:checkhealth masonwarning:Why this works
Both Mason packages (
stylelint-lspandstylelint-language-server) map to the same nvim-lspconfig server namestylelint_lsp, and the lspconfig in nvim-lspconfig has been updated to invoke thestylelint-language-serverbinary directly. So no changes are needed innvim/lua/plugins/nvim-lspconfig.lua—vim.lsp.config("stylelint_lsp", …)andvim.lsp.enable("stylelint_lsp")keep working and just pick up the new binary.Changes
stylelint_lspfrommason-lspconfig'sensure_installed(which was resolving to the deprecatedstylelint-lspMason package via mason-lspconfig's name mapping).stylelint-language-serverdirectly to the Mason registry tools list in the deferred installer, so Mason installs the new package by name.One-time local cleanup
After pulling this branch, run the following inside Neovim to remove the deprecated package that's still installed locally:
The next start will install
stylelint-language-serverautomatically via the registry tools list.tmux: split TPM keybinding overrides into
post-tpm.confThe TPM override bindings (
I,U,M-u) only work if they're declared afterrun ~/.config/tmux/plugins/tpm/tpm. Inlining them right below therunline worked but obscured that ordering requirement. Moving them intotmux/post-tpm.confand sourcing that file makes the intent explicit. Also drops the manual-e TMUX=…env injection ondisplay-popup— tmux already propagates the parentTMUXenvironment.fish: regenerate copilot completions
Re-ran
copilot completion fish; the newer generator quotes condition predicates ('__fish_use_subcommand') and subcommand names ('login','install', etc.). No behavior change.