Skip to content

Commit

Permalink
perf(dap): only set autoload_configurations = true for Neovim >= 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jan 20, 2024
1 parent 87c3b2d commit acddc41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Performance (DAP): Use cached source map,
LLDB commands and library path.
- DAP: Set `autoload_configurations` only for Neovim >= 0.10,
as compiling the debug build is not async in Neovim 0.9.

## [3.16.2] - 2024-01-19

Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ local RustaceanDefaultConfig = {
--- @class RustaceanDapConfig
dap = {
--- @type boolean Whether to autoload nvim-dap configurations when rust-analyzer has attached?
autoload_configurations = true,
autoload_configurations = vim.fn.has('nvim-0.10.0') == 1, -- Compiling the debug build cannot be run asynchronously on Neovim < 0.10
--- @type DapExecutableConfig | DapServerConfig | disable | fun():(DapExecutableConfig | DapServerConfig | disable)
adapter = function()
--- @type DapExecutableConfig | DapServerConfig | disable
Expand Down

0 comments on commit acddc41

Please sign in to comment.