Skip to content

Commit 8955136

Browse files
author
Bassam Data
committed
chore: remove the option to disable history
1 parent 5c07cde commit 8955136

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lua/copilot-lsp/config.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
---@field clear_on_large_distance boolean Whether to clear suggestion when cursor is far away
55
---@field count_horizontal_moves boolean Whether to count horizontal cursor movements
66
---@field reset_on_approaching boolean Whether to reset counter when approaching suggestion
7-
---@field enable_history boolean Whether to enable suggestion history for restoration
87

98
local M = {}
109

@@ -17,7 +16,6 @@ M.defaults = {
1716
clear_on_large_distance = true,
1817
count_horizontal_moves = true,
1918
reset_on_approaching = true,
20-
enable_history = true,
2119
},
2220
}
2321

lua/copilot-lsp/nes/ui.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ end
1111
---@param bufnr integer
1212
---@param state copilotlsp.InlineEdit
1313
local function _store_suggestion_history(bufnr, state)
14-
if not config.nes.enable_history then
15-
return
16-
end
1714
local history = vim.b[bufnr].copilotlsp_nes_history or {}
1815
table.insert(history, 1, vim.deepcopy(state))
1916
if #history > 2 then
@@ -55,9 +52,6 @@ function M.restore_suggestion(bufnr, ns_id)
5552
if not vim.api.nvim_buf_is_valid(bufnr) then
5653
return false
5754
end
58-
if not config.nes.enable_history then
59-
return false
60-
end
6155
local history = vim.b[bufnr].copilotlsp_nes_history
6256
if not history or #history == 0 then
6357
return false

0 commit comments

Comments
 (0)