We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e288cd commit be50459Copy full SHA for be50459
lua/copilot-lsp/nes/ui.lua
@@ -93,7 +93,6 @@ function M._display_next_suggestion(edits, ns_id)
93
return
94
end
95
local bufnr = vim.uri_to_bufnr(edits[1].textDocument.uri)
96
- local win_id = vim.fn.win_findbuf(bufnr)[1]
97
local suggestion = edits[1]
98
99
local lines = M._calculate_lines(suggestion)
@@ -123,14 +122,6 @@ function M._display_next_suggestion(edits, ns_id)
123
122
return true
124
125
126
- local accepted_cursor = vim.b.nes_state.accepted_cursor
127
- if accepted_cursor then
128
- local cursor = vim.api.nvim_win_get_cursor(win_id)
129
- if cursor[1] == accepted_cursor[1] and cursor[2] == accepted_cursor[2] then
130
- return
131
- end
132
133
-
134
M.clear_suggestion(bufnr, ns_id)
135
136
end,
0 commit comments