|
1 | | -*onjin.txt* For Neovim >= 0.8.0 Last change: 2025 November 29 |
| 1 | +*onjin.txt* For Neovim >= 0.8.0 Last change: 2025 December 02 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *onjin-table-of-contents* |
@@ -40,7 +40,7 @@ REQUIREMENTS *onjin-neovim-config-requirements* |
40 | 40 | - Neovim 0.10+ with LuaJIT (treesitter folding and `vim.lsp.enable` APIs are used). |
41 | 41 | - Git (`lazy.nvim` bootstraps repositories on demand). |
42 | 42 | - ripgrep (`Snacks.picker` live grep flows and `todo-comments` use it). |
43 | | -- Language servers and formatters: `lua-language-server`, `basedpyright-langserver`, `ruff`, `rust-analyzer`, `nixd`, `nixfmt`, `jdtls` (Rust checks use `cargo clippy`). |
| 43 | +- Language servers and formatters: `lua-language-server`, `basedpyright-langserver`, `ruff`, `yaml-language-server`, `taplo`, `rust-analyzer`, `nixd`, `nixfmt`, `jdtls` (Rust checks use `cargo clippy`). |
44 | 44 |
|
45 | 45 |
|
46 | 46 | DIRECTORY TOUR *onjin-neovim-config-directory-tour* |
@@ -170,8 +170,10 @@ it advertises. |
170 | 170 |
|
171 | 171 | LANGUAGE SERVERS *onjin-neovim-config-language-servers* |
172 | 172 |
|
173 | | -- **Auto attach** – `after/ftplugin/*.lua` enables servers (`basedpyright`, `ruff`, `rust_analyzer`, `lua_ls`, `nixd`, `jdtls`) whenever the corresponding filetype loads and the executable exists. |
174 | | -- **Install tips** – use your package manager or `pip` for `basedpyright-langserver` and `ruff`, Nix flakes for `nixd`/`nixfmt`, and `jdtls` with Lombok support (set `$JDTLS_LOMBOK` or `$LOMBOK_JAR`). |
| 173 | +- **Auto attach** – `after/ftplugin/*.lua` enables servers (`basedpyright`, `ruff`, `rust_analyzer`, `lua_ls`, `nixd`, `yamlls`, `taplo`, `jdtls`) whenever the corresponding filetype loads and the executable exists. |
| 174 | +- **Install tips** – use your package manager or `pip` for `basedpyright-langserver` and `ruff`, Nix flakes for `nixd`/`nixfmt`, install `yaml-language-server` via npm or your distro (on NixOS prefer `pkgs.nodePackages.yaml-language-server`), install `taplo` via cargo/npm/binary releases (on NixOS prefer `pkgs.taplo` or `pkgs.taplo-lsp`), and `jdtls` with Lombok support (set `$JDTLS_LOMBOK` or `$LOMBOK_JAR`). |
| 175 | +- **YAML** – relies on `yaml-language-server`; if it is missing on NixOS, add `pkgs.nodePackages.yaml-language-server` to the devShell or run `nix profile install nixpkgs#nodePackages.yaml-language-server` for a per-user install. |
| 176 | +- **TOML** – powered by `taplo`; if it is missing on NixOS, add `pkgs.taplo`/`pkgs.taplo-lsp` to your devShell or run `nix profile install nixpkgs#taplo`. |
175 | 177 | - **Rust** – uses `rust-analyzer`; if it is missing on NixOS, add `pkgs.rust-analyzer` to your flake/devShell packages or run `nix profile install nixpkgs#rust-analyzer` for a user install. `cargo clippy` powers the default check command. |
176 | 178 | - **Commands** – `:LspAttach`, `:LspDettach`, `:LspRestart`, `:LspInfo`, and `:LspLog` manage clients; attach/detach commands use picker UIs. |
177 | 179 | - **Formatting** – `ruff` formats Python on save, and a fallback format-on-save autocmd is injected when servers advertise `textDocument/formatting`. |
|
0 commit comments