Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

float-telescope-preview.nvim

Open commands, files, LSP jumps, and Telescope selections in a fullscreen floating window.

Requirements

Installation

{
  'Foxinio/float-telescope-preview.nvim',
  dependencies = { 'nvim-telescope/telescope.nvim' },
  config = function()
	require('float-command').setup()
    require('telescope').load_extension('float_command')
  end,
}

Usage

local float_command = require('float-command')

float_command.setup({
  border = 'rounded',
  width = 0.8,
  height = 0.8,
  zindex = nil,
  win_opts = {},
})

float_command.open('messages')
float_command.open_file('/path/to/file')
float_command.open_lsp(vim.lsp.buf.declaration)
float_command.open_telescope(require('telescope.builtin').lsp_definitions)

The same functions are exported through require('telescope').extensions.float_command after loading the extension.

Run the smoke check with:

nvim --headless -u NONE -l tests/smoke.lua

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages