aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/rust_analyzer.lua
Commit message (Collapse)AuthorAgeFilesLines
* 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-121-0/+118
Problem: Nvim 0.11 has vim.lsp.config, which mostly replaces the legacy nvim-lspconfig "framework". Solution: Migrate all configs to `lsp/*` variants. The old configs in `lua/lspconfig/` are "frozen". The new configs include these changes: - `commands` field became raw calls to `vim.api.nvim_buf_create_user_command` inside `on_attach`. - `root_dir` became: - `root_markers` whenever the file list was simple didn't need to mach `*` - if the logic was complicated, or needed to match something like '\*.c', it was defined as a vim.lsp.Config `root_dir` callback. - `on_config_change` became `before_init`. I don't actually know if this is the correct approach, but looking around the documentation of `nvim-lspconfig` a saw that it was defined as the function that gets called as soon as the config have `root_dir`, and so I thought `before_init` might be the closest alternative. - `docs.description` became a luadoc `@brief` docstring. - `single_file_support = false`? Co-authored-by: Aliou Diallo <aliou@users.noreply.github.com> Co-authored-by: Justin M. Keyes <justinkz@gmail.com>