AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
930 stars 19 forks source link

Fzf-lua empty list #120

Open niamleeson opened 2 months ago

niamleeson commented 2 months ago

The list is not displaying anything. It seems it is displaying the next line in the list. Most of the yanks are single line yanks. The entries you see in the screenshot are multiline yanks

Here's my fzf-lua config:

{
    'ibhagwan/fzf-lua',
    dependencies = { 'nvim-tree/nvim-web-devicons' },
    config = function()
      require('fzf-lua').setup {
        -- global history
        -- fzf_opts = {
        --   ['--history'] = vim.fn.stdpath 'data' .. '/fzf-lua-history',
        -- },
        keymap = {
          builtin = {
            ['<F12>'] = 'toggle-help',
            ['<F11>'] = 'toggle-preview',
            ['<S-down>'] = 'preview-page-down',
            ['<S-up>'] = 'preview-page-up',
            ['<S-left>'] = 'preview-page-reset',
          },
          fzf = {
            ['down'] = 'next-history',
            ['up'] = 'prev-history',
            ['ctrl-n'] = 'down',
            ['ctrl-p'] = 'up',
            ['ctrl-d'] = 'half-page-down',
            ['ctrl-u'] = 'half-page-up',
          },
        },
        grep = {
          fzf_opts = {
            ['--history'] = vim.fn.stdpath 'data' .. '/fzf-lua-grep-history',
          },
        },
        files = {
          formatter = 'path.filename_first', -- vscode like find where file name can be specified first
          -- path_shorten = 4,
          fzf_opts = {
            ['--history'] = vim.fn.stdpath 'data' .. '/fzf-lua-files-history',
          },
        },
        winopts = {
          fullscreen = true,
          preview = {
            layout = 'vertical',
            vertical = 'down:50%',
            horizontal = 'right:40%',
            title_pos = 'left',
          },
        },
        actions = {
          files = {
            ['default'] = require('fzf-lua.actions').file_edit,
          },
        },
        previewers = {
          builtin = {
            title_fnamemodify = function(s)
              return s
            end,
          },
        },
        file_ignore_patterns = { 'i18n/', '%.lock$', '%.lua$', '%.vim$' },
      }
    end,
  },

  {
    'AckslD/nvim-neoclip.lua',
    requires = {
      -- you'll need at least one of these
      -- {'nvim-telescope/telescope.nvim'},
      { 'ibhagwan/fzf-lua' },
    },
    config = function()
      require('neoclip').setup()
    end,
  },

Screenshot 2024-05-03 at 11 06 02 AM

AckslD commented 2 months ago

Could this be same as #119 or independent of theme?

niamleeson commented 2 months ago

It could be, but I don't think so because the list shows up if the yank was a multiline content. You can see in the screenshot. The list that is showing up is the 2nd line in a multiline content.

AckslD commented 2 months ago

Do you know if this is only for fzf-lua or also telescope?