Skip to content

Commit 202f6a3

Browse files
committed
popup ting
1 parent 5bd143a commit 202f6a3

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

lsp/copilot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ return {
3636
--TODO: This should go on an auto command
3737
--I would like to debounce this, and call it automatically
3838
--but we need to work on the clean up logic/tracking for the UI
39-
vim.keymap.set("n", "<leader>x", function()
39+
vim.keymap.set("n", "<leader>xr", function()
4040
nes.request_nes(client)
4141
end)
4242

lua/copilot-lsp/init.lua

Lines changed: 0 additions & 7 deletions
This file was deleted.

lua/copilot-lsp/nes/ui.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function M._display_next_suggestion(edits, ns_id)
132132
end
133133

134134
local hint_bufnr = vim.api.nvim_create_buf(false, true)
135-
vim.api.nvim_buf_set_lines(hint_bufnr, 0, -1, false, { "<C-e>" })
135+
vim.api.nvim_buf_set_lines(hint_bufnr, 0, -1, false, { "Accept" })
136136

137137
vim.bo[hint_bufnr].modifiable = false
138138
vim.bo[hint_bufnr].buflisted = false
@@ -143,7 +143,7 @@ function M._display_next_suggestion(edits, ns_id)
143143
relative = "cursor",
144144
width = 10,
145145
height = 1,
146-
row = (suggestion.range["end"].line + same_line) - vim.api.nvim_win_get_cursor(0)[1] - 1,
146+
row = (suggestion.range["end"].line + lines.same_line) - vim.api.nvim_win_get_cursor(0)[1] - 1,
147147
col = 0,
148148
zindex = 150,
149149

@@ -154,7 +154,6 @@ function M._display_next_suggestion(edits, ns_id)
154154
style = "minimal",
155155
border = "none",
156156
})
157-
vim.wo[hint_winnr].winhighlight = "Normal:FloatTitle"
158157

159158
ui.hint_winnr = hint_winnr
160159

0 commit comments

Comments
 (0)