The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Neovim Telescope Plugin Development Setup

TODO: Pull subtitle into page object

This needs a write up but here's the code in the mean time.

Directory Structure

Code
~/Desktop/extension_name
└── lua
    └── telescope
        └── _extensions
            └── extension_name.lua

Extension File

Code
local pickers = require "telescope.pickers"
local finders = require "telescope.finders"

local run_extension = function()
  pickers.new({}, {
    prompt_title = "grimoire",
    finder = finders.new_table {
      results = { "red", "green", "blue" }
    },
  }):find()
end

return require("telescope").register_extension {
  exports = {
    extension_name = run_extension
  },
}

Configuration Setup

Code
require('lazy').setup({

  { dir = "~/Desktop/extension_name" },
  
  -- other plugins
  
}, {})


pcall(require('telescope').load_extension, 'extension_name')

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Neovim Telescope Plugin Development Setup

-- note

This needs a write up but here's the code
in the mean time.

-- h2

Directory Structure 

-- code

~/Desktop/extension_name
└── lua
    └── telescope
        └── _extensions
            └── extension_name.lua


-- h2

Extension File

-- code
-- lua
-- filename: extension_name.lua

local pickers = require "telescope.pickers"
local finders = require "telescope.finders"

local run_extension = function()
  pickers.new({}, {
    prompt_title = "grimoire",
    finder = finders.new_table {
      results = { "red", "green", "blue" }
    },
  }):find()
end

return require("telescope").register_extension {
  exports = {
    extension_name = run_extension
  },
}

-- h2

Configuration Setup

-- code
-- lua
-- filename: ~/.config/nvim/init.lua

require('lazy').setup({

  { dir = "~/Desktop/extension_name" },
  
  -- other plugins
  
}, {})


pcall(require('telescope').load_extension, 'extension_name')


-- Notes

- The docs show moving the code for the
  plugin to other files. I haven't had
  a problem keeping it directly in this
  file for small processes.




-- list 

- docs
  https://github.com/nvim-telescope/telescope.nvim/blob/master/developers.md


-- categories
-- Neovim
-- Lua 


-- metadata
-- date: 2023-03-20 16:24:38
-- id: 2nifqll0
-- site: aws
-- type: post
-- status: published