ワンクリックで
add-language
Use when adding language support to the Neovim config - creating LSP server configs, adding formatters and linters
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when adding language support to the Neovim config - creating LSP server configs, adding formatters and linters
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | add-language |
| description | Use when adding language support to the Neovim config - creating LSP server configs, adding formatters and linters |
Adds language support to the Neovim configuration at config/nvim/.worktrees/rewrite/.
lsp/<server-name>.lua:Use https://github.com/neovim/nvim-lspconfig/tree/master/lsp as a starting point for the server config. Find the matching server file there and adapt it.
---@type vim.lsp.Config
return {
cmd = { "server-binary" },
filetypes = { "filetype" },
root_markers = { ".git" },
settings = {},
}
The file name must match the Mason package name. plugin/lsp.lua auto-discovers all files in lsp/.
formatters_by_ft in lua/plugins/conform.lua:filetype = { "formatter-name" },
-- or with fallback:
filetype = { "prettierd", "prettier", stop_after_first = true },
linters_by_ft in lua/plugins/lint.lua:filetype = { "linter-name" },
after/ftplugin/<filetype>.lua for indent, textwidth, etc.Mason auto-installs the LSP server, formatter, and linter on next startup.
| What | Where to find |
|---|---|
| LSP servers | https://mason-registry.dev/registry/list — file name must match the Mason package name |
| Formatters | https://github.com/stevearc/conform.nvim — see "Formatters" section in README |
| Linters | https://github.com/mfussenegger/nvim-lint — see "Available Linters" section in README |
| What | Where |
|---|---|
| LSP config | lsp/<server>.lua |
| Formatters | lua/plugins/conform.lua → formatters_by_ft |
| Linters | lua/plugins/lint.lua → linters_by_ft |
| Filetype opts | after/ftplugin/<ft>.lua |
| Mason skip list | lua/plugins/mason.lua → skip table |