diff options
Diffstat (limited to 'lua/core/telescope.lua')
-rw-r--r-- | lua/core/telescope.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/core/telescope.lua b/lua/core/telescope.lua index eba27eec..0fb735fa 100644 --- a/lua/core/telescope.lua +++ b/lua/core/telescope.lua @@ -159,6 +159,26 @@ function M.view_lunarvim_changelog() }):find() end +function M.code_actions() + local opts = { + winblend = 15, + layout_config = { + prompt_position = "top", + width = 80, + height = 12, + }, + borderchars = { + prompt = { "─", "│", " ", "│", "â•", "â•®", "│", "│" }, + results = { "─", "│", "─", "│", "├", "┤", "╯", "â•°" }, + preview = { "─", "│", "─", "│", "â•", "â•®", "╯", "â•°" }, + }, + border = {}, + previewer = false, + shorten_path = false, + } + require("telescope.builtin").lsp_code_actions(require("telescope.themes").get_dropdown(opts)) +end + function M.setup() local telescope = require "telescope" |