diff options
author | Yigit Sever | 2023-08-24 16:01:13 +0300 |
---|---|---|
committer | Yigit Sever | 2023-08-24 16:01:13 +0300 |
commit | 17622b71bccb34112dd17fa2324c48978a3f0dc6 (patch) | |
tree | d17c49889dd4162229f8f2cf038c666a7f5b4e14 | |
parent | bcd497297fa093190e78ffd886e7c1149a17ca00 (diff) | |
download | dotfiles-17622b71bccb34112dd17fa2324c48978a3f0dc6.tar.gz dotfiles-17622b71bccb34112dd17fa2324c48978a3f0dc6.tar.bz2 dotfiles-17622b71bccb34112dd17fa2324c48978a3f0dc6.zip |
nvim: add telescope spell_suggest picker
and a little telescope for the prompt
-rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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 { | |||
16 | require('telescope').setup({ | 16 | require('telescope').setup({ |
17 | defaults = { | 17 | defaults = { |
18 | path_display = { "truncate" }, | 18 | path_display = { "truncate" }, |
19 | prompt_prefix = " ", | ||
19 | }, | 20 | }, |
20 | extensions = { | 21 | extensions = { |
21 | fzf = { | 22 | fzf = { |
@@ -46,6 +47,18 @@ return { | |||
46 | map("n", "<leader>sw", require("telescope.builtin").grep_string, "🔭: current word") | 47 | map("n", "<leader>sw", require("telescope.builtin").grep_string, "🔭: current word") |
47 | map("n", "<leader>sg", require("telescope.builtin").live_grep, "🔭: live grep") | 48 | map("n", "<leader>sg", require("telescope.builtin").live_grep, "🔭: live grep") |
48 | map("n", "<leader>sd", require("telescope.builtin").diagnostics, "🔭: diagnostics") | 49 | map("n", "<leader>sd", require("telescope.builtin").diagnostics, "🔭: diagnostics") |
50 | map("n", "<leader>st", function() | ||
51 | require("telescope.builtin").spell_suggest(require("telescope.themes").get_cursor({ | ||
52 | prompt_title = "", | ||
53 | layout_config = { | ||
54 | height = 0.25, | ||
55 | width = 0.25, | ||
56 | }, | ||
57 | winblend = 10, | ||
58 | previewer = false, | ||
59 | })) | ||
60 | end | ||
61 | , "🔭: spelling suggest") | ||
49 | require("telescope").load_extension("yank_history") | 62 | require("telescope").load_extension("yank_history") |
50 | map("n", "<leader>sp", require("telescope").extensions.yank_history.yank_history, "🔭: yank history") | 63 | map("n", "<leader>sp", require("telescope").extensions.yank_history.yank_history, "🔭: yank history") |
51 | end, | 64 | end, |