docs: dev, lsp, indent-guides #39756

- document "indent guides" https://github.com/neovim/neovim/issues/39726
- document guidance for "subcommands" https://github.com/neovim/neovim/issues/32263#issuecomment-4436002808

Co-authored-by: glepnir <glephunter@gmail.com>
Co-authored-by: Noa Levi <275430404+lphuc2250gma@users.noreply.github.com>
This commit is contained in:
Justin M. Keyes
2026-05-14 13:13:30 -04:00
committed by GitHub
parent c7f5f44b60
commit 4f27b585e9
14 changed files with 158 additions and 100 deletions

View File

@@ -274,9 +274,9 @@ end
--- filetypes = { 'c', 'cpp' },
--- }
--- ```
--- - Get the resolved configuration for "lua_ls":
--- - Get the resolved configuration for "emmylua_ls":
--- ```lua
--- local cfg = vim.lsp.config.lua_ls
--- local cfg = vim.lsp.config.emmylua_ls
--- ```
---
---@since 13
@@ -589,14 +589,14 @@ end
---
--- ```lua
--- vim.lsp.enable('clangd')
--- vim.lsp.enable({'lua_ls', 'pyright'})
--- vim.lsp.enable({'emmylua_ls', 'pyright'})
--- ```
---
--- Example: To _dynamically_ decide whether LSP is activated, define a |lsp-root_dir()| function
--- which calls `on_dir()` only when you want that config to activate:
---
--- ```lua
--- vim.lsp.config('lua_ls', {
--- vim.lsp.config('emmylua_ls', {
--- root_dir = function(bufnr, on_dir)
--- if vim.fs.ext(vim.fn.bufname(bufnr)) ~= 'txt' then
--- on_dir(vim.fn.getcwd())