telescope-github.nvim icon indicating copy to clipboard operation
telescope-github.nvim copied to clipboard

Gist edit / delete working?

Open rodhash opened this issue 9 months ago • 0 comments

Description

I'm not able to make edit / delete work, list / create work.

Neovim version

NVIM v0.11.0         
Build type: Release  
LuaJIT 2.1.1741730670

Operating system and version

macOS 15.4.1

Steps to reproduce

  1. nvim -u minimal.lua
  2. run 'Telescope gh gist'
  3. try edit (it will accept the changes but it doesnt change)
  4. try delete (it doesnt work and sometimes get stuck)

Expected behavior

  1. Edit to make changes to the gist
  2. Delete to delete the gist

Actual behavior

Trying to edit it looks it worked but it doesnt change.

Trying to delete doesn't work and sometimes get stuck as follow (using minimal):

Image

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          'nvim-telescope/telescope-github.nvim',
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('gh')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]

UPDATE:

Edit seems to work fine, I only now realized it makes the change after closing the buffer.

rodhash avatar May 10 '25 00:05 rodhash