return { 'folke/which-key.nvim', keys = { { 'ya', function() require('custom.location_reference').copy_absolute_location_reference() end, mode = { 'n', 'x' }, desc = '[Y]ank [A]bsolute ref', }, { 'yr', function() require('custom.location_reference').copy_relative_location_reference() end, mode = { 'n', 'x' }, desc = '[Y]ank [R]elative ref', }, { 'yf', function() require('custom.location_reference').copy_buffer_file_reference() end, mode = { 'n', 'x' }, desc = '[Y]ank Buffer [F]ile', }, { 'yd', function() require('custom.location_reference').copy_buffer_directory_reference() end, mode = { 'n', 'x' }, desc = '[Y]ank Buffer [D]irectory', }, }, opts = function(_, opts) opts.spec = opts.spec or {} table.insert(opts.spec, { 'y', group = '[Y]ank' }) end, }