nvim-neoclip.lua icon indicating copy to clipboard operation
nvim-neoclip.lua copied to clipboard

Fzf-lua empty list

Open niamleeson opened this issue 1 year ago • 4 comments

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

niamleeson avatar May 03 '24 15:05 niamleeson

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

AckslD avatar May 04 '24 19:05 AckslD

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.

niamleeson avatar May 06 '24 19:05 niamleeson

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

AckslD avatar May 07 '24 00:05 AckslD

In the fzf.lua file, you need to replace ["--delimiter"] = [[\.]] with [[.]] .

ksjun avatar Oct 09 '24 16:10 ksjun