File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 4
4
--- @field clear_on_large_distance boolean Whether to clear suggestion when cursor is far away
5
5
--- @field count_horizontal_moves boolean Whether to count horizontal cursor movements
6
6
--- @field reset_on_approaching boolean Whether to reset counter when approaching suggestion
7
- --- @field enable_history boolean Whether to enable suggestion history for restoration
8
7
9
8
local M = {}
10
9
@@ -17,7 +16,6 @@ M.defaults = {
17
16
clear_on_large_distance = true ,
18
17
count_horizontal_moves = true ,
19
18
reset_on_approaching = true ,
20
- enable_history = true ,
21
19
},
22
20
}
23
21
Original file line number Diff line number Diff line change 11
11
--- @param bufnr integer
12
12
--- @param state copilotlsp.InlineEdit
13
13
local function _store_suggestion_history (bufnr , state )
14
- if not config .nes .enable_history then
15
- return
16
- end
17
14
local history = vim .b [bufnr ].copilotlsp_nes_history or {}
18
15
table.insert (history , 1 , vim .deepcopy (state ))
19
16
if # history > 2 then
@@ -55,9 +52,6 @@ function M.restore_suggestion(bufnr, ns_id)
55
52
if not vim .api .nvim_buf_is_valid (bufnr ) then
56
53
return false
57
54
end
58
- if not config .nes .enable_history then
59
- return false
60
- end
61
55
local history = vim .b [bufnr ].copilotlsp_nes_history
62
56
if not history or # history == 0 then
63
57
return false
You can’t perform that action at this time.
0 commit comments