aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/rust_analyzer.lua
Commit message (Collapse)AuthorAgeFilesLines
* docs: apply auto-generated annotations to LSP configsYi Ming2026-03-131-0/+1
|
* fix(rust_analyzer): recognize std lib sources in sysroot #4338Jan Palus2026-03-091-2/+31
| | | | | | | | | Problem: System installed sources of Rust standard library are not detected as library sources. Solution: Add sources location to paths used for library check. See also: https://rust-analyzer.github.io/book/configuration.html#cargo.sysrootSrc
* fix(rust_analyzer): pass environment in rust-analyzer.runSingle #4333XeroOl2026-03-061-1/+1
| | | | | | | When rust-analyzer wants to invoke cargo (eg, when the user uses code lenses), it sends a Command to nvim. This Command contains environment info that we're currently ignoring (ie, a value of RUSTC_TOOLCHAIN). With this change, we forward the environment variables that rust-analyzer wants to set to the spawned process.
* feat(rust_analyzer): enable codelens (#4210)Mike J McGuirk2025-11-211-0/+17
| | | | | Problem: rust_analyzer does not contain the configs for codelens by default Solution: Add codelens config
* feat(rust-analyzer): out-of-the-box support for codelens #4165Dubakula Sai Venkata Chaitanya2025-10-291-0/+25
| | | | Codelens requires a bit of special configuration to work on rust-analyzer as described here: neovim/neovim#34353 (comment)
* chore: add type annotation for configsIgor2025-08-181-0/+1
|
* fix(rust_analyzer): update config to 0.11+Dimitris Dimitropoulos2025-08-111-1/+2
| | | | | - Call request as method - Silence wrong diagnostic
* fix: some `on_attach` callbacks may act on the wrong buffer #3916Dmytro Meleshko2025-06-201-3/+3
| | | | | | | | | Problem: If a server is attached to a non-current buffer by `vim.lsp.buf_attach_client`, then the Language Server-related commands may be created in the current (wrong) buffer. Solution: Always use the `bufnr` arg provided to `on_attach`.
* fix(configs): eliminate some usages of root_pattern #3820Justin M. Keyes2025-05-041-4/+2
| | | | | | | Problem: `root_pattern` is not necessary for non-glob patterns. Solution: Replace non-glob cases with `vim.fs.root()`..
* fix(rust_analyzer): scheduled vim.notify in on_exit of vim.system(#3793)Steve Walker2025-04-271-1/+3
| | | Fix `E5560: nvim_echo must not be called in a fast event context`
* refactor: deprecate util.validate_bufnr()Justin M. Keyes2025-04-231-1/+0
|
* ci(lint): deprecate util.path.is_descendant() on Nvim 0.11+ #3766Justin M. Keyes2025-04-231-1/+1
|
* fix: use "Lsp" prefix for config-defined commandsJustin M. Keyes2025-04-211-1/+1
|
* docs: cleanupJustin M. Keyes2025-04-181-22/+23
| | | | | - brief should live at the top of each file - fix indentation for some docs
* fix(rust_analyzer): call on_dir() when reusing client #3736Tobias Schmitz2025-04-161-3/+4
|
* fix(docs): docgen.lua reads from `lua/*.lua` #3708Justin M. Keyes2025-04-121-1/+1
| | | | | | | | Problem: Since configs now live in `lsp/`, the docgen needs to be updated. Solution: Read the configs from `lsp/`. Parse the `@brief` docstring to get the docs.
* feat: migrate to vim.lsp.config #3659Lorenzo Bellina2025-04-12