11--- @class CopilotChat.select.Selection
22--- @field content string
3- --- @field start_line number
4- --- @field end_line number
3+ --- @field start_line integer
4+ --- @field end_line integer
55--- @field filename string
66--- @field filetype string
7- --- @field bufnr number
7+ --- @field bufnr integer
88
99local log = require (' plenary.log' )
1010local utils = require (' CopilotChat.utils' )
@@ -51,7 +51,7 @@ function M.marks()
5151end
5252
5353--- Highlight selection in target buffer or clear it
54- --- @param bufnr number
54+ --- @param bufnr integer
5555--- @param clear boolean ?
5656function M .highlight (bufnr , clear )
5757 local selection_ns = vim .api .nvim_create_namespace (' copilot-chat-selection' )
@@ -76,7 +76,7 @@ function M.highlight(bufnr, clear)
7676end
7777
7878--- Get the selection from the target buffer
79- --- @param bufnr number
79+ --- @param bufnr integer
8080--- @return CopilotChat.select.Selection ?
8181function M .get (bufnr )
8282 if not utils .buf_valid (bufnr ) then
@@ -113,10 +113,10 @@ function M.get(bufnr)
113113end
114114
115115--- Sets the selection to specific lines in buffer or clears it
116- --- @param bufnr number
117- --- @param winnr number ?
118- --- @param start_line number ?
119- --- @param end_line number ?
116+ --- @param bufnr integer
117+ --- @param winnr integer ?
118+ --- @param start_line integer ?
119+ --- @param end_line integer ?
120120function M .set (bufnr , winnr , start_line , end_line )
121121 if not utils .buf_valid (bufnr ) then
122122 return
0 commit comments