ojroques / nvim-lspfuzzy

A Neovim plugin to make the LSP client use FZF
BSD 2-Clause "Simplified" License
316 stars 11 forks source link

Add a new field `callback` to the option #19

Closed 110y closed 3 years ago

110y commented 3 years ago

Usage

require('lspfuzzy').setup {
    callback = function ()
        vim.api.nvim_command("normal! zz")
    end,
}

Motivation

After jumping to the target location, I often would like to execute the normal! zz command in order to redraw the cursor line to be the center of the window, or make the line to be blinking by using another vim plugin.

ojroques commented 3 years ago

Hello! Great feature, thank you very much :) I've refactored a bit your pull request to avoid code duplication.

110y commented 3 years ago

@ojroques

Thank you for merging it!