Skip to content

naefl/telescope-scriptrunner.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

telescope-scriptrunner.nvim

telescope-scriptrunner is an extension for telescope.nvim that provides its users with the ability to easily run and edit pre-written scripts

vim-floaterm

Installation

-- packer.nvim:
use { 'nvim-telescope/telescope-scriptrunner.nvim',
  requires = {
    {'nvim-lua/plenary.nvim'},
    {'nvim-lua/popup.nvim'},
    {'nvim-lua/popup.nvim'},
    {'voldikss/vim-floaterm'},
  },
  config = function()
    require'telescope'.load_extension'scriptrunner'
    -- ... other telescope settings
  end,
}
...
-- paq-nvim:
paq 'nvim-lua/plenary.nvim'
paq 'nvim-lua/popup.nvim'
paq 'nvim-telescope/telescope.nvim'
paq 'nvim-telescope/telescope-scriptrunner.nvim'
...
require'telescope'.load_extension'scriptrunner'

Usage

Set keybinding like vim.api.nvim_set_keymap('n', '<leader>sr', [[<cmd>lua require'telescope'.extensions.scriptrunner.list{}<CR>]], {noremap=true, silent=true}) and adapt the options listed below.

list

:Telescope scriptrunner list

key action
<CR> run in terminal Floatterm the found script
<TAB> edit the script

options

scriptdir

Directory containing the scripts

Credits

Most of the code is directly lifted from telescope-z.

TODO

  • [] Make todo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages