File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ if vim.fn.executable("find") == 1 then
235235 nargs = 1 ,
236236 })
237237end
238- command (" CloseOtherBufs" , function (opt )
238+ command (" CloseOtherBufs" , function (_ )
239239 local bufs = vim .api .nvim_list_bufs ()
240240 local cur = vim .api .nvim_get_current_buf ()
241241 for _ , v in ipairs (bufs ) do
@@ -294,10 +294,8 @@ if vim.fn.executable("fzy") == 1 then
294294 end , vim .api .nvim_list_bufs ())
295295 local tools = require (" kide" )
296296 fzy .pick_one (bufs , " Buffers > " , function (item )
297- if item then
298- local filename = vim .uri_from_bufnr (item )
299- return tools .format_uri (filename )
300- end
297+ local filename = vim .uri_from_bufnr (item )
298+ return tools .format_uri (filename )
301299 end , function (b , _ )
302300 if b then
303301 vim .cmd (" b " .. b )
@@ -402,7 +400,7 @@ command("Gpt", function(opt)
402400 if opt .range > 0 then
403401 text = require (" kide.tools" ).get_visual_selection ()
404402 end
405- require (" kide.tools.ai " ).toggle_gpt (text )
403+ require (" kide.gpt.chat " ).toggle_gpt (text )
406404end , {
407405 desc = " Gpt" ,
408406 nargs = 0 ,
You can’t perform that action at this time.
0 commit comments