From 17622b71bccb34112dd17fa2324c48978a3f0dc6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 24 Aug 2023 16:01:13 +0300 Subject: nvim: add telescope spell_suggest picker and a little telescope for the prompt --- .config/nvim/lua/plugins/telescope.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index be6fdd7..6acc9a6 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -16,6 +16,7 @@ return { require('telescope').setup({ defaults = { path_display = { "truncate" }, + prompt_prefix = " ", }, extensions = { fzf = { @@ -46,6 +47,18 @@ return { map("n", "sw", require("telescope.builtin").grep_string, "🔭: current word") map("n", "sg", require("telescope.builtin").live_grep, "🔭: live grep") map("n", "sd", require("telescope.builtin").diagnostics, "🔭: diagnostics") + map("n", "st", function() + require("telescope.builtin").spell_suggest(require("telescope.themes").get_cursor({ + prompt_title = "", + layout_config = { + height = 0.25, + width = 0.25, + }, + winblend = 10, + previewer = false, + })) + end + , "🔭: spelling suggest") require("telescope").load_extension("yank_history") map("n", "sp", require("telescope").extensions.yank_history.yank_history, "🔭: yank history") end, -- cgit v1.2.3-70-g09d2