9. Layer selection

clojure
(configuration-layers! [:tree-sitter :lsp :treemacs :git :clojure :cider :cpp])
代码

- **No call means every built-in layer is enabled** (following spacemacs
  `dotspacemacs-configuration-layers`).
- Unselected layers do not load commands, add bindings, add hooks, or provide option
  defaults.
- Dependencies are included automatically: selecting `:slime` brings `:lisp`; selecting
  `:cider` brings `:clojure`.
- With `:lsp` selected, major modes in language-layer server lists automatically use
  `lsp-deferred`.

Built-in layers, in default load order:

| Layer | Provides |
|---|---|
| `:tree-sitter` | Syntax highlighting + structural editing (sexp navigation / tree-based indentation) |
| `:lsp` | LSP client: definitions / references / rename / formatting / diagnostics / completion / inlay hints |
| `:helm` | Minibuffer completion defaults |
| `:treemacs` | Project-tree sidebar |
| `:git` | magit-status / log / blame / diff / repos, VC, and smerge conflict resolution (project and grep are core features, not in this layer) |
| `:lisp` | Common Lisp language base (major modes / alive-lsp and cl-lsp server lists) |
| `:clojure` | Clojure language base (clojure-lsp server list) |
| `:cider` | Clojure nREPL REPL |
| `:slime` | Common Lisp SWANK REPL |
| `:erlang` | Erlang (ELP / erlang_ls) |
| `:elixir` | Elixir (elixir-ls) |
| `:cpp` | C / C++ (clangd) |
| `:java` | Java (jdtls) |
| `:kotlin` | Kotlin (kotlin-language-server) |
| `:javascript` | JS / TS / TSX (typescript-language-server) |
| `:html` | HTML |
| `:css` | CSS |
| `:markdown` | Markdown |

Raw Markdown: coxn manual (Markdown) · Installers: coxn product page