fix: hide internal properties of config (#1036)

This commit is contained in:
yetone
2025-01-05 18:27:23 +08:00
committed by GitHub
parent 9895ce7681
commit 48fc35f978
5 changed files with 29 additions and 31 deletions

View File

@@ -669,9 +669,7 @@ function Sidebar:apply(current_cursor)
selected_snippets_map = all_snippets_map
end
if Config.options.behaviour.minimize_diff then
selected_snippets_map = self:minimize_snippets(selected_snippets_map)
end
if Config.behaviour.minimize_diff then selected_snippets_map = self:minimize_snippets(selected_snippets_map) end
vim.defer_fn(function()
api.nvim_set_current_win(self.code.winid)