From 8cf46b48a47922103085a79e75984c8d7ae0dcbb Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 28 Oct 2024 22:24:55 +0700 Subject: [PATCH] telescope: tried to use smart-open --- lazy-lock.json | 1 + lua/plugins/telescope.lua | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 lua/plugins/telescope.lua diff --git a/lazy-lock.json b/lazy-lock.json index bf72c6f..a4ba95e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -84,6 +84,7 @@ "rose-pine": { "branch": "main", "commit": "d396005db5bbd1d4ec7772a7c96c96f4c4802328" }, "rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" }, "silicon.lua": { "branch": "main", "commit": "f1387c8e2e69743899d6da6d4bd0e42be5ac5fa0" }, + "smart-open.nvim": { "branch": "main", "commit": "7770b01ce4d551c143d7ec8589879320796621b9" }, "snipe.nvim": { "branch": "main", "commit": "854a47c970413405361487c13e2b1e9aa9a3696e" }, "sqlite.lua": { "branch": "master", "commit": "d0ffd703b56d090d213b497ed4eb840495f14a11" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..cf84941 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,30 @@ +return { + { + "danielfalk/smart-open.nvim", + keys = { + { + "", + function() + require("telescope").extensions.smart_open.smart_open { cwd_only = true } + end, + desc = "Open file or buffers", + }, + }, + }, + { + "telescope.nvim", + opts = { + extensions = { + smart_open = { + result_limit = 50, + }, + }, + }, + keys = { + { + "", + false, + }, + }, + }, +}